React Native On-Device Face Detection w/ Google ML Kit
npm install @react-native-ml-kit/face-detection --save
CLI autolink feature links the module while building the app.
react-native link @react-native-ml-kit/face-detection
On iOS, use CocoaPods to add the native RNMLKitFaceDetection to your project:
npx pod-install
import FaceDetection from '@react-native-ml-kit/face-detection';
const faces = FaceDetection.detect(imageURL, { landmarkMode: 'all' });