An open API service indexing awesome lists of open source software.

https://github.com/tradle/react-native-facetec-zoom


https://github.com/tradle/react-native-facetec-zoom

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# react-native-facetec-zoom

unofficial react-native bridge for Facetec's [Zoom SDK](https://dev.zoomlogin.com/).

## Functions

- liveness detection
- ...TODO

## Install

### Common

```sh
npm i -S tradle/react-native-facetec-zoom
react-native link react-native-facetec-zoom
```

### iOS

This library has been tested with version 8.1.0 of the SDK

First, download `ZoomAuthentication.framework` from one of these sources:

- [Zoom SDK](https://dev.zoomlogin.com/zoomsdk/#/downloads)
- [app.tradle.io](https://s3.amazonaws.com/app.tradle.io/sdk/facetec-zoom/ios/8.1.0/ZoomAuthentication.framework.zip)

Unzip the file, locate `ZoomAuthentication.framework`, copy it to your `ios/` directory, and drag it to your project in XCode (Check the `Copy items if needed` option when asked)

Add a Copy File phase to your Xcode project and have `ZoomAuthentication.framework` copied to Destination `Frameworks`

If you have an Objective-C project, add a blank Swift file to your project (File -> New -> Swift File), with a bridging header (it will prompt you to auto-create one).

add `NSCameraUsageDescription` to your Info.plist, e.g.:
```xml
NSCameraUsageDescription
verify liveness with Zoom
```

### Android

In your project's build.gradle (android/build.gradle), add the maven block below:

```gradle
allprojects {
repositories {
// ...
maven {
url 'http://maven.facetec.com'
}
}

If you want to override the default version of the Zoom SDK, add:

```gradle
ext {
// ...
zoomSdkVersion = '7.0.11' // <--- whichever version you want to use
// ...
}
```

```

This module depends on [react-native-image-store](https://github.com/tradle/react-native-image-store), so you'll need to npm install and react-native link that one too.

## Usage

See example app at https://github.com/tradle/rnzoomexample