# Initialization

After installing the Wepin React Native Login Library, the next step is to initialize the SDK. SDK initialization involves creating an instance of `WepinLogin` and using the `init()` function to proceed.

## Import SDK

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

```dart
import WepinLogin from '@wepin/login-rn'
```

## Creating and Initializing the `WepinLogin` Instance

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

{% content-ref url="../../../wepin/workspace/app-registration-and-key-issuance" %}
[app-registration-and-key-issuance](https://docs.wepin.io/en/wepin/workspace/app-registration-and-key-issuance)
{% endcontent-ref %}

Use the registered app information to create a `WepinLogin` instance and initialize it by calling `init()`.

```typescript
const wepinLogin = new WepinLogin({
  appId: 'wepinAppId',
  appKey: 'wepinAppKey',
});

await wepinLogin.init()
```

## Checking Initialization Status (isInitialized)

You can check whether the `WepinLogin` instance has been successfully initialized by using the `isInitialized` method.

The return value is as follows:

* **boolean**
  * Returns `true` if initialization was successful, and `false` if it failed.

#### **Example**

```typescript
if(wepinLogin.isInitialized()) {
    // Success to initialize WepinLogin
}
```
