This is based on awesome work by @expo enginners - check the code here https://github.com/expo/expo
npm install @entria/rn-face-detectorThis 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
$ npm install @entria/react-native-face-detector --save
$ react-native link @entria/react-native-face-detector
#### iOS
1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]
2. Go to node_modules ➜ @entria/react-native-face-detector and add RNFaceDetector.xcodeproj
3. In XCode, in the project navigator, select your project. Add libRNFaceDetector.a to your project's Build Phases ➜ Link Binary With Libraries
4. Run your project (Cmd+R)<
#### Android
1. 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 the getPackages() method
2. 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')
android/app/build.gradle
3. Insert the following lines inside the dependencies block in :`
`
compile project(':@entria/react-native-face-detector')
#### Windows
Read it! :D
1. In Visual Studio add the RNFaceDetector.sln in node_modules/@entria/react-native-face-detector/windows/RNFaceDetector.sln folder to their solution, reference from their app.MainPage.cs
2. Open up your appusing Face.Detector.RNFaceDetector;
- Add to the usings at the top of the filenew RNFaceDetectorPackage()
- Add to the List returned by the Packages method
javascript
import RNFaceDetector from '@entria/react-native-face-detector';// TODO: What to do with the module?
RNFaceDetector;
``