@entria/rn-face-detector
v0.0.18
Published
This is based on awesome work by @expo enginners - check the code here https://github.com/expo/expo
Downloads
160
Readme
@entria/react-native-face-detector
This is based on awesome work by @expo enginners - check the code here https://github.com/expo/expo
This repo is an experiment and not necessarily ready for production, use at your own risk
Getting started
$ npm install @entria/react-native-face-detector --save
Mostly automatic installation
$ react-native link @entria/react-native-face-detector
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜@entria/react-native-face-detector
and addRNFaceDetector.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNFaceDetector.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNFaceDetectorPackage;
to the imports at the top of the file - Add
new RNFaceDetectorPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':@entria/react-native-face-detector' project(':@entria/react-native-face-detector').projectDir = new File(rootProject.projectDir, '../node_modules/@entria/react-native-face-detector/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':@entria/react-native-face-detector')
Windows
- In Visual Studio add the
RNFaceDetector.sln
innode_modules/@entria/react-native-face-detector/windows/RNFaceDetector.sln
folder to their solution, reference from their app. - Open up your
MainPage.cs
app
- Add
using Face.Detector.RNFaceDetector;
to the usings at the top of the file - Add
new RNFaceDetectorPackage()
to theList<IReactPackage>
returned by thePackages
method
Usage
import RNFaceDetector from '@entria/react-native-face-detector';
// TODO: What to do with the module?
RNFaceDetector;