react-native-uport-connect
Library for integrating uPort into your React Native app
Demo app
Installation
-
yarn add react-native-uport-connect
-
Add
"react-native-uport-connect/babel-preset.js"
to.babelrc
-
Configure iOS
- Add custom URL scheme
uportdemoapp
to Info.plist
CFBundleURLTypes CFBundleTypeRole Editor CFBundleURLSchemes uportdemoapp LSApplicationQueriesSchemes me.uport
- Add this code to
AppDelegate.m
#import <React/RCTLinkingManager.h> - (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options{ return [RCTLinkingManager application:application openURL:url options:options];}
- Configure Android
- Add
android:launchMode="singleTask"
and<data android:scheme="mnid{YOUR_DAPP_MNID}" />
tosrc/main/AndroidManifest.xml
Usage
const uport = const web3 = uport uport