@fingerprintjs/fingerprintjs-pro-react-native
Version:
Official React Native client for Fingerprint. Best identification solution for React Native.
26 lines (23 loc) • 566 B
TypeScript
import { VisitorQueryContext } from './types.js';
import '@fingerprintjs/fingerprintjs-pro-spa';
/**
* Use the `useVisitorData` hook in your components to perform identification requests with the FingerprintJS API.
*
* @example
* ```jsx
* const {
* // Request state
* isLoading,
* // Error info
* error,
* // Visitor info
* data,
* // A method to be called to initiate request
* getData,
* } = useVisitorData();
* ```
*
* @group Hooks approach
*/
declare function useVisitorData(): VisitorQueryContext;
export { useVisitorData };