React Native

Using the Fingerprint React Native library

Fingerprint React Native is an official open-source library for projects written in React Native for iOS and Android platforms. This library allows developers to use Fingerprint capabilities in the React Native context. All Fingerprint agent capabilities are fully supported.


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

Example Use Case

  1. Add @fingerprintjs/fingerprintjs-pro-react-native as a dependency to your application via npm or yarn.
npm install @fingerprintjs/fingerprintjs-pro-react-native --save
yarn add @fingerprintjs/fingerprintjs-pro-react-native
  1. Wrap your application (or component) in FingerprintJsProProvider. You can specify multiple configuration options.
// src/index.js
import React from 'react';
import { AppRegistry } from 'react-native';
import { FingerprintJsProProvider } from '@fingerprintjs/fingerprintjs-pro-react-native';
import App from './App';

    <App />
  1. Use the useVisitorData hook in your components to perform visitor identification and get the data.
// src/App.js
import React, { useEffect } from 'react';
import { useVisitorData } from '@fingerprintjs/fingerprintjs-pro-react-native';

function App() {
  const {
  } = useVisitorData();

  useEffect(() => {
  }, []);

  if (isLoading) {
    return <div>Loading...</div>;
  if (error) {
    return <div>An error occured: {error.message}</div>;

  if (!data) {
   return null
  // perform some logic based on the visitor data
  return (
      Visitor id is {data.visitorId}

export default App;


You can find the full documentation in the official GitHub repository. The repository also contains an example app demonstrating usage of the library.