React Native Library for Simpl Zero Click Sdk
This project serves as a wrapper for Simpl Zero Click native sdk.
Installation
Using npm:
npm install --save react-native-simpl-zero-click-sdk
or using yarn:
yarn add react-native-simpl-zero-click-sdk
Linking
Run the following command to link the SDK to Android and iOS
react-native link react-native-simpl-zero-click-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-zero-click-sdk') compile "com.simpl.android:zeroClicksdk:+"}
iOS
If you are using Cocoapods, Add native ZeroClick SDK to your Podfile
pod 'react-native-simpl-zero-click-sdk', :podspec => '../node_modules/react-native-simpl-zero-click-sdk/react-native-simpl-zero-click-sdk.podspec'
Then run,
pod install
If you are not using Cocoapods, Link the Framework from here manually.
Usage
// To check either user is approved or not SimplSdk console); //To generate zero-click tokenSimplSdk //To open redirection URLSimplSdk; //To generate FingerprintSimplSdk
Sample project can be found here