login-widget-secure v1.0.1
#Installation:
###Android:
Add the following code to the AndroidManifest.xml:
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:
Add "YourCustomScanQRScreen" Component to createStackNavigator's routeConfigMap: createStackNavigator({ ... ScanQR: YourCustomScanQRScreen });
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.
To open ScanQRCode screen you only need to: navigation.navigate('ScanQR');
###P.S. If have any problem, refer to the example or open issue.