@entria/rn-face-detector

This is based on awesome work by @expo enginners - check the code here https://github.com/expo/expo

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@entria/rn-face-detector
Minified + gzip package size for @entria/rn-face-detector in KB

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

  1. In XCode, in the project navigator, right click LibrariesAdd 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 PhasesLink 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
  1. 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')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
    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.
  2. Open up your MainPage.cs app
  • Add using Face.Detector.RNFaceDetector; to the usings at the top of the file
  • Add new RNFaceDetectorPackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNFaceDetector from '@entria/react-native-face-detector';

// TODO: What to do with the module?
RNFaceDetector;

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.