2 min read
The React Native SDK opens your Footprint onboarding flow in an in-app browser.
This package includes native dependencies that need manual installation and configuration.
Minimum version requirements
Check your environment against these versions before installing:
| Dependency | Minimum version |
|---|---|
| React Native | >= 0.76 |
The flow opens in the device browser and does not load on versions older than those listed under Browser support.
Installation
- Install the SDK.
bash1npm install @onefootprint/footprint-react-native
- Install the required native dependencies.
bash1npm install react-native-inappbrowser-reborn
- On iOS, install the pods.
bash1cd ios && pod install
Device intelligence
If your playbook uses device-intelligence rules, install Fingerprint to collect the signals those rules need. Fingerprint is a third-party provider. Its SDK is optional: onboarding completes without it, but without device-intelligence signals. If your app already bundles Fingerprint, you can leave out the dependency to avoid a duplicate native framework.
Fingerprint requires React Native 0.80 or later with the New Architecture, iOS 15.1, and Android API 24. To set it up:
- Install the peer dependency.
bash1npm install @fingerprint/react-native
- On iOS, install the pods.
bash1cd ios && pod install
- On Android, add the Fingerprint Maven repository to the
allprojectsblock inandroid/build.gradle.
groovy1allprojects { 2 repositories { 3 google() 4 mavenCentral() 5 maven { url 'https://www.jitpack.io' } 6 maven { url 'https://maven.fpregistry.io/releases' } 7 } 8}
Fingerprint hosts its Android SDK on a custom Maven repository. Without it, the Android build fails with dependency resolution errors.
For footprint-react-native 3.2, use
@fingerprintjs/fingerprintjs-pro-react-native. From 3.3, use @fingerprint/react-native.Next steps
- Onboarding starts an onboarding from your app and handles the onboarding ID it returns.