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
5
votes
1 answer

Screen Shot in React Native (Android)

I am using the React-Native-View-Shot Library to take a screenshot of the whole screen. It is mentioned in the documentation that the method captureScreen(): captureScreen() will capture the contents of the currently displayed screen as a native…
user9960312
5
votes
4 answers

How to check if user has granted camera permission in React Native Android?

Right after the app launches, I am getting permission to use Camera from the user. But before opening camera if I check if the user has granted camera permission or not, I get the response as "false" even when it is allowed. Here is my…
5
votes
2 answers

Undefined is not an object (evaluating '_reactNativeCamer.RNCamera.Constants'

I'm trying out the react-native-camera and I always get Undefined is not an object (evaluating '_reactNativeCamer.RNCamera.Constants' as an error. The old camera works fine, just the new one won't start. I just copy pasted the sample code,…
5
votes
2 answers

Camera Freeze: How to reinitialise camera component?

Took photo using camera and then navigated to another page where there is a back button, on click event I am again navigating to camera but this time camera freezes but I am able to click a another photo. Observed that camera freezes if navigation…
Rashmi
  • 565
  • 2
  • 7
  • 29
5
votes
1 answer

How To add Focus, Brightness and Zoom controls to react native camera?

I used react-native-camera on my iOS app and now trying to add Focus, Brightness and Zoom controls to it. So far I was unable to come up with a solution. Any idea how to do this? I tried to find an option in different react native camera packages.…
THpubs
  • 7,804
  • 16
  • 68
  • 143
5
votes
1 answer

Error: ENOENT: no such file or directory react-native-camera

Does anyone has faced this problem with react-native-camera when taking a picture Error: ENOENT: no such file or directory, open 'assets-library://asset/asset.JPG?id=B52996FD-EBCD-4B8D-A289-81063B8F09E9&ext=JPG' ?(edited)
5
votes
2 answers

A jpeg image uploaded from an iPhone to S3 is not readable. But works on photoshop

I'm trying to upload a jpeg image from an iOS device to S3 using a presigned url. Here's what I'm doing: const file = { uri: imageURL, type: 'image/jpeg' }; const formData = new FormData(); formData.append('photo',…
THpubs
  • 7,804
  • 16
  • 68
  • 143
5
votes
1 answer

Get recently clicked image from camera on image view in react-native

I am implementing camera in my react native application. I want to show the recently captured image from that camera in a small image view on the same screen after click. But I am not getting how do I access the recently clicked image. Whenever any…
coderzzz18
  • 2,535
  • 5
  • 16
  • 23
4
votes
2 answers

React Native: what to set minimum deployment target to?

I'm trying to add react-native-vision-camera to my React Native app, and it gave me the following error: Specs satisfying the VisionCamera (from ../node_modules/react-native-vision-camera) dependency were found, but they required a higher minimum…
4
votes
0 answers

RNCamera Usage: how long do temporary photos persist?

When I'm using RNCamera, and not saving the photo to the Camera Roll, what is the persistence of the photo file? If the application crashes, does that photo get deleted eventually or is it saved forever on the device? Do I have to manually find and…
4
votes
1 answer

Cannot resize RNCamera react-native-camera

I am using React native camera in my react native project for QR scan . I am facing this problem that I cannot resize the height of the camera viewport. I tried using flexing down the column into 3 each of 2 and then placed it…
Kush
  • 644
  • 1
  • 12
  • 30
4
votes
0 answers

Force encoding method in expo camera

I am using react native and expo camera to build an app that can upload videos to my website. Everything works fine on Android but on newer iPhones it uploads a blank video that still has audio. I think this is because of the new iOS encoding method…
4
votes
1 answer

Capture the area within a square box using camera in react native

I want to show a square box on my camera screen and I want to capture the area within that square box how I can achieve that? It will not scan any bar code or QR code it will simply capture the area within a square box and skip all the rest. this is…
Fariha Khalid
  • 91
  • 1
  • 6
4
votes
1 answer

Mixed up default and named imports

I am trying to use the Camera with React Native but it seems that my imports are messed up and I can't figure out why. Based on similar posts it seems that the export from the Camera is not properly done but I don't want to modify the…
Thomas-55300
  • 51
  • 1
  • 1
  • 3
4
votes
1 answer

Front Facing Camera does not Auto Focus or Manually Focus

Current Behaviour I'm using react-native-camera with iPads/iPhones and I use the front-facing camera to scan barcodes (Code39, Code128, QR, etc..) However when using the front-facing camera, it does not focus on the barcode or anything I put mildly…
user5283119
1 2
3
22 23