> For the complete documentation index, see [llms.txt](https://docs.wepin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wepin.io/en/widget-integration/react-native-sdk/widget/initialization.md).

# Initialization

## **Import SDK**

To use the Wepin React Native Widget SDK, you first need to import the SDK. Add the following import statements:

```javascript
import WepinWidgetSDK from '@wepin/sdk-rn';
```

## Creating **the WepinWidgetSDK Instance**

Before creating an instance of `WepinWidgetSDK`, you must register your app's Android/iOS information in the Wepin Workspace.

{% content-ref url="/pages/dQiDmklSBMcztyymHWPu" %}
[App Registration and Key Issuance](/en/wepin/workspace/app-registration-and-key-issuance.md)
{% endcontent-ref %}

Using the registered app information, create an instance of `WepinWidgetSDK`. Create the `WepinWidgetSDK` instance as follows:

```javascript
const wepinWidget = new WepinWidgetSDK({
  appId: 'wepinAppId',
  appKey: 'wepinAppKey',
});
```

## **SDK Initialization (init)**

When initializing the Wepin React Native Widget SDK, you can define the required widget properties.

```javascript
await wepinWidget.init();
```

#### **Parameters**

* **attributes** <`IWepinSDKAttributes`> ***optional***
  * defaultLanguage: - `defaultLanguage`: The language to be displayed on the widget (default: `'en'`) Currently, only `ko`, `en`, and `ja` are supported.
  * **defaultCurrency**: The currency to be displayed on the widget (default: `'USD'`) Currently, only `'KRW'`,`'USD'` and `'JPY'` are supported.

#### **Example**

```javascript
await wepinWidget.init();
```

## **Checking Initialization Status (isInitialized)**

You can check whether the WepinSDK has been successfully initialized.

```javascript
wepinWidget.isInitialized();
```

#### **Parameters**

* **None**

#### **Return Value**

* **\<boolean>**
  * Returns `true` if the initialization was successful, and `false` if it failed.

## **Changing Language and Currency (changeLanguage)**

You can change the language and currency of the widget.

```javascript
await wepinWidget.changeLanguage({ language, currency });
```

#### **Parameters**

* **\<object>**
  * **language** `<String>`\
    Specifies the language to be displayed in the widget. Currently supported languages are `en,` `ja` and `ko`.
  * **currency** `<String>`\
    Specifies the currency to be displayed in the widget. Currently supported currencies are `USD`, `JPY` and `KRW`.
