The Socure Device Risk SDK React Native bridge provides Reach developers with the ability to call the Socure Device Risk SDK, either the Android or iOS native library variants, through React.
Make sure you have following components installed
- Xcode
- Android Studio
- React Native
yarn install
Update the SDKKey in config.js.
Important: This project is configured to disable Flipper by default to avoid unnecessary dependencies.
cd ios && NO_FLIPPER=1 pod install && cd ..
react-native run-ios
Note: The NO_FLIPPER=1 environment variable is automatically set in .xcode.env.local to ensure Flipper is disabled for all builds.
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home
react-native run-android
Note: This project requires Java 17 for Android builds. Make sure to set the JAVA_HOME environment variable accordingly.
For instructions on how to configure the SDK, see the React Native documentation on DevHub.