react-native-simpl-fingerprint-sdk

1.0.3 • Public • Published

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:

import Simpl from "react-native-simpl-fingerprint-sdk";
//Get Payload
Simpl.generateFingerprint(
  "<client_id>",
  "<phone_number>",
  "<email>",
  (payload) => {
    console.log("Fingerprint", payload);
  }
);

Package Sidebar

Install

npm i react-native-simpl-fingerprint-sdk

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

1.84 MB

Total Files

80

Last publish

Collaborators

  • kamalnrf
  • dvrajan12