1.0.26 • Published 5 years ago

@bigbangcore/react-native-kyc v1.0.26

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

react-native-kyc

KYC SDK wrapper for React Native

Getting started

$ yarn add @bigbangcore/react-native-kyc @bigbangcore/react-native-linkface

Automatic installation

Using in React Native > 0.60 with Cocoapods the autolinking will handle most to the dependencies

See @bigbangcore/react-native-linkface project for installing on iOS and Android

Usage

Init KYCVerificator

import KYCVerificator, {KYCVerifyRegion} from '@bigbangcore/react-native-kyc';

const kycVerificator = new KYCVerificator(
  0, // Your platform (see backend)
  KYCVerifyRegion.China, // Default start with China Region
  'http://api.project.com/api', // API url for kyc center
  authToken, // Current user Auth token
  '<LINKFACE_API_ID>',
  '<LINKFACE_API_SECRET>',
);

Listen for KYC info changes to refresh react component UI

const sub = kycVerificator.kycInfoChanges$.subscribe(() => {
  // Re-Render when info changes
  this.forceUpdate();
});

Scan/Select ID card

  • For region China it will use linkface to Scan Chinese ID Card
  • For region Worldwide it will show a menu to take or select a picture
kycVerificator
  .start(KYCVerifySteps.Front)
  .then(() => {})
  .catch(error => {
    alert(error.message);
  });
1.0.26

5 years ago

1.0.25

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.0

5 years ago