Initialization
Last updated
Last updated
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.
To use the Wepin React Native Login Library, you first need to import the SDK. Add the following import statements:
WepinLogin
InstanceBefore creating an instance of WepinLogin
, you must register your app's Android/iOS information in the Wepin Workspace.
Using the registered app information, create an instance of WepinLogin
.
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.