npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-face-capture

v1.0.2

Published

A React Native application that demonstrates real-time face detection capabilities using the device's camera or photo library.

Readme

A React Native application that demonstrates real-time face detection capabilities using the device's camera or photo library.

Features

  • 📸 Take photos using the device camera
  • 🖼️ Select images from the photo library
  • 👤 Real-time face detection
  • 📐 Face bounding box visualization
  • 📱 Cross-platform (iOS & Android)

Demo

Below is a screenshot showing the package's expected behavior. The app detects faces in a selected or captured image and draws a bounding box around the detected face(s), along with face data:

Learn More

Read the full tutorial on Medium:
Building a React Native Face Detection Component from Scratch

Prerequisites

  • Node.js (v14 or newer)
  • Xcode (for iOS development)
  • Android Studio (for Android development)
  • React Native development environment set up

Permissions

This package requires camera and photo library permissions to function correctly.

iOS

Add the following keys to your Info.plist:

<key>NSCameraUsageDescription</key>
<string>We need access to your camera to take photos.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to your photo library to select images.</string>

Android

Add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

For Android 13+ (API 33+), also add:

<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />

Compatibility

This package has been tested with the following versions:

  • react: 19.1.0
  • react-native: 0.80.1
  • react-native-face-detection: ^0.1.1
  • react-native-image-picker: ^8.2.1

It may work with other versions, but these are the versions officially tested and supported.

Installation

Install the package and its peer dependencies:

npm install react-native-face-capture react-native-face-detection react-native-image-picker
# or
yarn add react-native-face-capture react-native-face-detection react-native-image-picker

Usage

Here is a basic example using the FaceDetector component:

import React, { useState } from "react";
import { View } from "react-native";
import { FaceDetector, ImagePickerButtons } from "react-native-face-capture";

export default function App() {
  const [image, setImage] = useState();

  return (
    <View style={{ flex: 1 }}>
      <ImagePickerButtons onImagePicked={setImage} />
      <FaceDetector
        image={image}
        onDetection={(faces) => {
          console.log("Detected faces:", faces);
        }}
      />
    </View>
  );
}

API

  • FaceDetector: Main component for face detection and overlay.
  • useFaceDetection: Custom hook for face detection logic.
  • FaceOverlay: Overlay component for drawing on faces.
  • ImagePickerButtons: UI for picking images from the camera or gallery.

License

MIT