https://github.com/tradle/react-native-facetec-zoom
https://github.com/tradle/react-native-facetec-zoom
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/tradle/react-native-facetec-zoom
- Owner: tradle
- Created: 2018-09-13T02:36:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-10-29T19:54:38.000Z (over 5 years ago)
- Last Synced: 2025-04-14T23:51:48.398Z (about 1 year ago)
- Language: Java
- Size: 31.4 MB
- Stars: 10
- Watchers: 8
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
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