Socket
Socket
Sign inDemoInstall

react-native-infy-camera

Package Overview
Dependencies
2
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-infy-camera

A Camera component for React Native. Also reads barcodes.


Version published
Weekly downloads
1.7K
increased by25.33%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.0.2 (2018-03-10)

Chores
  • flow: add missing types to Picture options (6bff4d93)
  • types: add new keys to TakePictureOptions (cc272036)
  • face-detector: make face detection stoppage smoother (3b3c38dd)
New Features
  • types:
    • add FaceDetector declarations (ba218750)
    • add TypeScript definition files (a94bad5e)
Bug Fixes
  • types:
    • fix onBarCodeRead type (a9947b47)
    • fix definition for RNCameraProps.ratio (4d1616c5)
  • android-camera: revert to old camera api (8d9c06ad)

Readme

Source

React Native Camera Backers on Open Collective Sponsors on Open Collective npm version npm downloads

Docs

React Native infy camera module for React Native.

Supports:

  • photographs.
  • videos
  • face detection (Android & iOS only)
  • barcode scanning
  • text recognition

Example import

import { RNCamera, FaceDetector } from 'react-native-infy-camera';

To install and start react-native-infy-qrcode-scanner:

  1. npm i react-native-infy-camera
Permissions

To use the camera,

  1. On Android you should ask for camera permission:
  <uses-permission android:name="android.permission.CAMERA" />

To enable video recording feature, you must have to add the following code in AndroidManifest.xml:

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

5j2jduk

  1. On iOS, you should update Info.plist with a usage description for camera
...
<key>NSCameraUsageDescription</key>
<string>Your own description of the purpose</string>
...
	

For more information on installation, please refer to installation requirements.

For general introduction, please take a look into this RNCamera.

Keywords

FAQs

Last updated on 04 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc