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
2 answers

Setting the amount of exposure using RNcamera while taking pictures in React-Native?

i am using react-native-camera module to take pictures but i want to set the camera brightness via a slider, does this module support brightness settings like the one in samsung's native camera app my current configurations are: …
user7845429
  • 103
  • 1
  • 8
1
vote
1 answer

saveToCameraRoll is not a function

I am trying to send images which are taken using React Native Camera library to Camera Roll. When the user presses a button the following function gets triggered: takePicture = async function() { if (this.camera) { const options = {…
dclipca
  • 1,739
  • 1
  • 16
  • 51
1
vote
1 answer

React Native Camera - Multiple Photos

I am currently using react-native-camera as a library to take pictures. I managed to show and hide a one and only camera component depending on a specific state. I am working on an app that has multiple buttons to take a picture, for…
gangrelg
  • 93
  • 19
1
vote
1 answer

Best way to make exactly one API call in react-native (fetch, axios etc.)?

I am currently creating an app that includes a barcode scanner. Unfortunately, the only company I found - that seems to own 90+% of all food barcodes - provides an API starting at 500$/ year. So I tried to create a workaround which works but fires…
1
vote
0 answers

How do I launch the RN Expo Camera in fullscreen from TouchableOpacity press?

I have a React Native Component that is conditionally rendering a TouchableOpacity "Camera" Icon upon initial screen load, and pressing this TouchableOpacity "Camera" Icon is intended to launch the Expo's React Native Camera which is housed in a…
Chase Small
  • 321
  • 3
  • 13
1
vote
0 answers

React Native Qr code and camera not working properly in IOS

I am using react-native-camera and react-native-qrcode-scanner libraries for scanning qr codes in my app. In android I have tested this and it was working fine, but in IOS I am facing lot of issues. The camera opens successfully on first attempt but…
ahd786
  • 175
  • 1
  • 14
1
vote
0 answers

React native save photo with the square of the face recognition

How can I make sure that I can save the picture with the square of the face recognition? I would like to make sure that when the user takes the picture, and in the photo are recognized faces, as seen in the image. The photo is saved with a detail,…
Paul
  • 3,644
  • 9
  • 47
  • 113
1
vote
1 answer

How can I make my react-native-camera capture fast?

takePicture = async function() { if (this.camera) { const options = { quality: 0.5, base64: true, }; const data = await this.camera.takePictureAsync(options); this.setState({path: data.uri}) } } As…
Shubham Bisht
  • 577
  • 2
  • 26
  • 51
1
vote
2 answers

How to pass POST parameters in fetch for uploading image to server in React Native?

This is the code with I'm trying to send my image to server. postData = async () => { var location = await AsyncStorage.getItem('location'); var path = await AsyncStorage.getItem('path'); var post_type = await…
1
vote
0 answers

React native camera real time face tracking

onfacesDetected gets called when faces come in front of camera. Is there any way to know when the face goes out of camera?
suhail ahmed
  • 122
  • 1
  • 12
1
vote
1 answer

React Native: Saving image URI via AsyncStorage and reloading in different React Navigation screen

I am currently trying to combine a React Native Camera example with the React Navigation v2 and want to take a picture in the first view (called CameraView), save said picture to AsyncStorage, navigate to a second view (called GalleryView) and…
1
vote
2 answers

`react-native-camera` returns a data.uri but image cannot be accessed (no such file or directory)

I would appreciate any help on this. I'm using react-native-camera and when I get the URI of the image taken using takePictureAsync() method, I can't access that image. I took the photo and navigate to the next screen, passing the image data as the…
John Henry
  • 183
  • 3
  • 10
1
vote
2 answers

How to save captured image to custom app specific folder using react-native-camera

I'm using RNCamera from react-native-camera and save photo using CameraRoll react-native API. But saveToCameraRoll method takes only photo uri returned by takePictureAsync. And it saves photo to DCIM folder. But I want to save it to some app…
Aliaksei
  • 1,094
  • 11
  • 20
1
vote
1 answer

iPhone Camera is not working in react-native 0.55.4?

native-camera in my react-native app. For this I am using https://github.com/coretech/react-native-camera After setup this module into my project, my app was crashed and it shows a error message in console like this [access] This app has crashed…
1
vote
1 answer

Record square video on React-Native

I'm trying to build an react native app that allow user to record and publish square video (like instagram). Here are my attempts : 1 - Find a library that crop video in app => fail 2 - Find a library that show a square camera screen => fail 3 -…