Questions tagged [react-native-camera]

Camera module for React Native. Including photographs, videos, face detection and barcode scanning

The comprehensive camera module for React Native. Including photographs, videos, face detection and barcode scanning

Github: https://github.com/react-native-community/react-native-camera

Docs: https://github.com/react-native-community/react-native-camera/blob/master/docs/RNCamera.md

339 questions
1
vote
0 answers

Running background tasks in React Native in short intervals

I'm trying to build a time lapse camera that captures images even when the screen is off (battery non-optimised). Ideally for both iOS and Android, but I'm working with Android at the moment. I've poked around react-native-background-job and…
John M.
  • 2,642
  • 7
  • 26
  • 55
1
vote
1 answer

React Native Camera resets zoom when switching type

Which implementation are you using RCTCamera Steps to reproduce On Android, have a RCTCamera view with the zoom prop set to read from this.state.zoom, then do this.setState({ zoom: [any level], type: [front type if current camera is back…
Socratease
  • 191
  • 3
  • 10
1
vote
1 answer

undefined is not an object ( evaluating 'react2.propTypes.oneOfTypes')

Getting undefined is not an object ( evaluating '_react2.PropTypes.oneOfType') While using react-native-camera . using react-native-camera@0.6 with following react native version. react-native-cli: 2.0.1 react-native: 0.55.2 What i tried inside…
Shibin Raju Mathew
  • 920
  • 4
  • 18
  • 41
1
vote
2 answers

React-native-camera don't want to save images

I am using react-native-camera in my react-native app and everything works well, however when I take a photo the picture saves on my device which I do not want, the image is supposed to be sent to an api but NOT saved on my device, anyone know how I…
random1234
  • 777
  • 3
  • 17
  • 41
1
vote
1 answer

Detect live face on camera using react native

Hi I'm very new to react native, i have to develop an app like whenever camera detects the face, automatically we need to display the person age and gender without any button click event. I'm using Kairos API to display the age and gender but i need…
1
vote
1 answer

Howto take a photo, redirect to a new page where the image is displayed?

I want to capture a photo with react-native-camera, then pass that image as params when I navigate to the preview page. I'm able to pass along the URI to the photo I just took, but is not able to display it. I've tried both require and uri,…
martins
  • 9,669
  • 11
  • 57
  • 85
1
vote
1 answer

Callback when user denies permission to use camera on android while using react-native-camera

I'm using react-native-camera to take pictures in an android app. As soon as user reaches the camera page, the library itself asks for permission to use the device's camera on android phones (with api level >22). (Please note that I'm not manually…
Shubham
  • 21
  • 1
  • 5
1
vote
1 answer

Take multiple images with react native camera

I'm trying to take multiple images with ReactNativeCamera module. I have 2 functions first for taking the image: takePicture() { const options = {}; this.setState({searching:false}); this.camera.capture({metadata: options}) .then((data) =>…
gabrjan
  • 3,080
  • 9
  • 40
  • 69
1
vote
1 answer

React-native iOS app crashes when taking picture

I am using react-native-camera module in my app. Followed instructions to setup Camera using documentation listed here. After the setup, I can see camera in iOS simulator and also on my iPhone. But when I click on CAPTURE button, my app crashes in…
RC_02
  • 3,146
  • 1
  • 18
  • 20
1
vote
0 answers

videos unable to be played after saving to the camera roll

[ When testing with a read device this problem did not exist ] I'm using react-native-camera Everything works besides saving videos, they show up in the camera roll but have no thumbnail and just show the error video cannot be played. taking photos…
connell
  • 11
  • 3
1
vote
1 answer

React-Native-Camera Error when take photo with modified flashMode attribute

I am getting the following error when trying to take photo with flashMode attribute modified: { NSLocalizedDescription: 'Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" …
1
vote
0 answers

Update react-native component inside TabNavigator

Using react-native and react-navigation I need control a conditional render every time that user enter in a especific tab. When use enter the first time react-native-camera is enable, after onBarCodeRead I set the showCamera flag to false calling…
1
vote
0 answers

React-native: Image not uploading to AWS S3 for Android

I'm currently using react-native-aws3 and React-Native-Camera to upload images to AWS S3 since with this package, I did not have to write any native code. If there are any other suggestions around this issue that does not involve writing native…
1
vote
1 answer

Upload a file from react-native with socket.io and react-native-fs

I want to upload a video on my socket.io server from my react-native application , From an html-js client, the upload works perfectly. When I try to do it with react-native, the file is sent but is found as text on the server and I can not read it…
1
vote
0 answers

CameraManager.capture(options) in index.js from react-native-camera do not return anything with android

I'm really new to react-native and android app building, and I'm facing with this problem. I can't solve this for almost a week so I hope I can get some solution here.. Once this.refs.cam.capture(options, cb) on android, capture method return…