This demo app demonstrates the usage of Socure-DeviceRisk-React-Sdk library.
Make sure you have following components installed
- Xcode
- Android Studio
- React Native
Please specify the desired SDK version in your package.json
. For example, here is how specify version 1.2.1
(tag)
"react-native-device-risk": "https://github.com/socure-inc/socure-sigmadevice-wrapper-react-native#1.2.1",
yarn upgrade react-native-device-risk
yarn install
Update SDK key in App.js
. Look for setTracker
method call in the file. The first parameter (Replace this with your SDK Key
in App.js
) to the method has to be the SDK key.
cd ios && pod install && cd ..
react-native run-ios
react-native run-android