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-instantpay-camera

v1.1.2

Published

A React Native camera library enables developers to access and control a device’s camera (front/back) directly from a React Native application. It allows building features like photo capture, video recording, QR/barcode scanning, document scanning, face d

Readme

react-native-instantpay-camera

A React Native camera library enables developers to access and control a device’s camera (front/back) directly from a React Native application. It allows building features like photo capture, video recording, QR/barcode scanning, document scanning, face detection, and real-time image processing.

Features

| Features | Android | iOS | | :----------- | :------ | :-----| | Capture Photo | ✅ | ❌ | | OCR | ✅ | ❌ |

Installation

npm install react-native-instantpay-camera

API

Available Options List:

- cameraFacing : Represents the camera lens facing direction
    - Possible List : FRONT, BACK 
    - Default Value : BACK
- torchMode : Represents the torch (flashlight) mode for the camera.
    - Possible List : ON, OFF 
    - Default Value : OFF
- photoCaptureConfig : Photo Capture Configuration
    - quality : The quality of the captured photo.
        - Possible List : LOW , MEDIUM , HIGH
        - Default Value : MEDIUM
    - flash : The flash mode for capturing the photo.
        - Possible List : AUTO , ON , OFF
        - Default Value : AUTO
    - saveToGallery : Whether to save the captured photo to the gallery.
        - Boolean : TRUE/FALSE
        - Default Value : FALSE
    - maxWidth : The maximum width of the captured photo. (Eg: 890,1200 etc)
    - maxHeight : The maximum height of the captured photo. (Eg: 890,1200 etc)
    - base64ImageOutput : Whether to output the captured photo as a base64 string.
        - Boolean : TRUE/FALSE
        - Default Value : FALSE
    - compressBase64ImageOutput : Whether to compress the base64 image output.
        - Boolean : TRUE/FALSE
        - Default Value : FALSE
    - captureSound : Capture Sound enable/disable while taking photo
        - Boolean : TRUE/FALSE
        - Default Value : TRUE
- ocrConfig : OCR Configuration (Detect Text from Image)
    - language : The language to be used for OCR processing.
        - Possible List : EN , HI
        - Default Value : EN
    - detectAadhaar : Whether to enable Aadhaar card Number detection during OCR processing.
        - Boolean : TRUE/FALSE
        - Default Value : FALSE
    - detectPan : Whether to enable PAN card detection during OCR processing.
        - Boolean : TRUE/FALSE
        - Default Value : FALSE
        

Available Callback Methods List:

- onCloseCallback : Event handler that is called when the camera view is closed, providing close event data.
- onErrorCallback : Event handler that is called when an error occurs, providing error event data.
- onSuccessCallback : Event handler that is called when an operation is successful, providing success event data.
- onCameraStartedCallback : Event handler that is called when the camera has started, providing camera started event data.
- onPhotoCapturedCallback : Event handler that is called when a photo has been captured, providing photo captured event data.
- onTextDetectedCallback : Event handler that is called when text has been detected in the captured image, providing detected text event data.

Usage

import { InstantpayCamera } from "react-native-instantpay-camera";

// ...

<InstantpayCamera
    cameraFacing={{'BACK'}}
    photoCaptureConfig={{
        quality : 'MEDIUM'
    }}
    ocrConfig={{
        language:'EN',
    }}
    onCloseCallback={(event) => {
        console.log(event.nativeEvent)
    }}
    onErrorCallback={(event) => {
        console.log(event.nativeEvent)
    }}
    onSuccessCallback={(event) => {
        console.log(event.nativeEvent)
    }}
/>

License

MIT


Created By Instantpay