Quick Start
Requirements
react-native 0.60+
Installation
Install
- npm
- yarn
npm install @unipasswallet/react-native-sdk
yarn add @unipasswallet/react-native-sdk
On iOS, use CocoaPods to add the native RNAsyncStorage to your project:
cd ios
npx pod-install
Enabling Deep Links
Android
Open your app's AndroidManifest.xml file and add UniPassActivity activity in your application, add deep link intent filter to UniPassActivity activity. You can refer to the android developer documents
<activity
android:name="com.unipass.core.UniPassActivity"
android:exported="true"
android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Replace { scheme/host/path } with YOUR_APP_PACKAGE_NAME -->
<data
android:scheme="{scheme}"
android:host="{host}"
android:pathPattern="/*"
android:pathPrefix="/{path}" />
</intent-filter>
</activity>
Then you can use UniPassSDK in your project:
import UniPassWallet from '@unipasswallet/react-native-sdk'
History Version
Version | Last updated | UniPass Wallet Entry URL | UPgrade Instruction |
---|---|---|---|
v0.2.0 | 2023.03.06 | https://testnet.wallet.unipass.id/ | Add Connect / Transfer / Sign Message / Logout support |