Requirements
The React Native SDK uses the Android and iOS SDKs under the hood, so it has the same minimum OS version requirements:- Android 5.0 (API level 21+) or higher
- iOS 12 or higher (or tvOS 12 or higher), Swift 5.7 or higher
How to install
1. Install the package using your favorite package manager:
2. Configure iOS dependencies (if developing on iOS)
3. Configure Android dependencies (if developing on Android)
Add the repositories to your Gradle configuration file. The location for these additions depends on your project’s structure and the Gradle version you’re using:Gradle 7 or newer
For Gradle 7.0 and higher (if you’ve adopted the new Gradle settings file approach), you likely manage repositories in thedependencyResolutionManagement block in {rootDir}/android/settings.gradle. Add the Maven repositories in this block:
Groovy
Gradle 6.0 or older
For Gradle versions before 7.0, you likely have anallprojects block in {rootDir}/android/build.gradle. Add the Maven repositories within this block:
Groovy
Usage
Configure the SDK by wrapping your application inFingerprintJsProProvider.
JavaScript
useVisitorData hook in your components to perform visitor identification and get the data.
JavaScript
Documentation
You can find the full documentation in the official GitHub repository. The repository also contains an example app demonstrating usage of the library.Limitations
- Fingerprint request filtering is not supported right now. Allowed and forbidden origins cannot be used.
- Using inside Expo environment is not supported right now.