1.0.1 • Published 5 years ago

login-widget-secure v1.0.1

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

#Installation:

###Android:

  1. Add the following code to the AndroidManifest.xml:

  2. Insert the following line in android/app/build.gradle: android { ... defaultConfig { ... missingDimensionStrategy 'react-native-camera', 'general' <-- insert this line } }

###IOS: 1.

###Both: react-native link react-native-camera

#Usage:

  1. Add "YourCustomScanQRScreen" Component to createStackNavigator's routeConfigMap: createStackNavigator({ ... ScanQR: YourCustomScanQRScreen });

  2. In YourCustomScanQRScreen wrap ScanQRScreen component and provide apiKey and loginCallback(optional) props. You can generate your apiKey by http://206.189.21.59/api/generateKey . loginCallback receive error as first parameter and user object as second.

  3. To open ScanQRCode screen you only need to: navigation.navigate('ScanQR');

###P.S. If have any problem, refer to the example or open issue.