React Native Camera
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:
npm i react-native-infy-camera
Permissions
To use the camera,
- 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" />
- 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.