2 min read
The Expo SDK opens your Footprint onboarding flow in an in-app browser.
This package cannot run in the Expo Go app because it requires custom native code. Rebuild your app with
npx expo prebuild, as described in the Expo guide Adding custom native code.Minimum version requirements
Check your environment against these versions before installing:
| Dependency | Minimum version |
|---|---|
| Expo | Last 3 major versions |
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-expo
- Install the required peer dependencies.
bash1npm install expo-linking expo-web-browser
- On iOS, install the pods.
bash1npx 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 Expo SDK 54 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
- Add Fingerprint's config plugin to
app.json. It adds the Maven repository that hosts Fingerprint's Android SDK.
json1{
2 "expo": {
3 "plugins": ["@fingerprint/react-native"]
4 }
5}
- Rebuild the native code.
bash1npx expo prebuild
For footprint-expo 3.8, use
@fingerprintjs/fingerprintjs-pro-react-native and add https://maven.fpregistry.io/releases to your Android repositories. From 3.9, use @fingerprint/react-native.Next steps
- Onboarding starts an onboarding from your app and handles the onboarding ID it returns.
- WebView integration renders the flow in a native sheet you control instead of an in-app browser.