$ npm install react-native-cognito-asf-fingerprint --save
this shouldn't be needed if auto-linking is supported by your app's react-native version
$ react-native link react-native-cognito-asf-fingerprint
import { getData } from 'react-native-cognito-asf-fingerprint';
// TODO: What to do with the module?
const advancedSecurityData = await getData(username, cognitoPoolId, cognitoApplicationId);
const UserContextData = {
EncodedData: advancedSecurityData
}
💡 check out the example app in demo
ℹ (/demo)
💡 recommended: run Metro Bundler in a new shell
ℹ (cd demo && yarn start)
💡 enter the following commands to run the example app:
ℹ cd demo
ℹ react-native run-android
ℹ react-native run-ios
⚠ first steps in case of a clean checkout
ℹ run Yarn in demo
ℹ (cd demo && yarn)
ℹ do pod install
for iOS in demo/ios
ℹ (cd demo/ios && pod install)