React Native Library for Simpl FingerPrint Sdk
[![Version][version-badge]][package]
This project serves as a Simpl FingerPrint Sdk wrapper for React Native. Currently supported React Native version: >= 0.50.3
Installation
Using npm:
npm install --save react-native-simpl-fingerprint-sdk
or using yarn:
yarn add react-native-simpl-fingerprint-sdk
Examples
Example app lives in example directory
Linking
React-native from v0.60 supports auto linking so none of the folwing steps are required.
Run the following command to link the SDK to Android and iOS
react-native link react-native-simpl-fingerprint-sdk
Add native SDK
Android
Add the following to android/app/build.gradle
:
... repositories { maven { url "http://maven.getsimpl.com"}} dependencies { ... compile project(':react-native-simpl-fingerprint-sdk') compile "com.simpl.android:fingerprintSDK:+"}
iOS
If you are using Cocoapods, Add FingerPrint SDK to your Podfile
pod 'react-native-simpl-fingerprint-sdk', :podspec => '../node_modules/react-native-simpl-fingerprint-sdk/react-native-simpl-fingerprint-sdk.podspec
Then run,
pod install
If you are not using Cocoapods, Link the Framework from here manually.
Usage
For generating fingerprint data:
;//Get PayloadSimpl;