0.0.6 • Published 5 years ago

react-native-my-facepp v0.0.6

Weekly downloads
12
License
-
Repository
-
Last release
5 years ago

react-native-my-facepp

Getting started

$ yarn add react-native-my-facepp

Manual installation

iOS

  1. cd ios && pod install
  2. target link binary with libraries 添加faceId 需要的系统framework

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNMyFaceppPackage; to the imports at the top of the file
  • Add new RNMyFaceppPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-my-facepp'
    project(':react-native-my-facepp').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-my-facepp/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-my-facepp')

Usage

import RNMyFacepp from 'react-native-my-facepp';

// TODO: What to do with the module?
//身份证识别
RNMyFacepp.startIdCardDetectShootPage(0,(status,imgstr)=>{
             });
0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago