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
40
votes
4 answers

React-native-camera error when compiling android

I tried to upgrade my react native project to the newest version (0.59.2). Unfortunately, now when trying to run react-native run-android im getting this error: Could not determine the dependencies of task ':app:preDebugBuild'. > Could not resolve…
Konstantin Paulus
  • 1,943
  • 2
  • 10
  • 22
19
votes
3 answers

React native camera with a transparent view for barcode scanner mask

How to add a mask on top of the react-native-camera? I'm building the UI for a React Native QRCode scanner app using react-native-camera. The overlay mask on top of the camera should be in light grey color, but the middle part must keep transparent…
FisNaN
  • 2,517
  • 2
  • 24
  • 39
19
votes
2 answers

How do I use a captured image with react-native-camera

I can get the react-native-camera module to access the camera and save an image. However, I can't figure out how to display this image to the user. What I'm trying: Here I take the picture. This generates what looks to be a .jpg file in…
YPCrumble
  • 26,610
  • 23
  • 107
  • 172
16
votes
3 answers

Convert content:// URI to actual path for Android using React-Native

I am trying to upload images from cameraRoll. Thing is the cameraRoll component returns content:// URI rather than an actual file path. For uploading the image I need a file path, is there any way to convert content:// URI to file URI? Thanks
cubbuk
  • 7,800
  • 4
  • 35
  • 62
15
votes
1 answer

Delay on the capture of an image - React Native Camera / Expo Camera

I am trying to realize the same functionnality as in Facebook or Instagram: Preview the image taken by the camera instantly At this point, my taken is correctly taken when this function is called : takePicture = async function() { if…
Jaro
  • 1,587
  • 5
  • 20
  • 39
15
votes
1 answer

How to obtain frames from react-native-camera in real time

I am using the react-native-camera component (https://github.com/lwansbrough/react-native-camera) in an application I am developing. Is there any way to obtain the individual frames from the video / camera feed such that I may perform processing in…
cyrusbehr
  • 1,100
  • 1
  • 12
  • 32
14
votes
2 answers

react-native-image-picker vs expo ImagePicker

I have tried many attempts to get react-native-image-picker up and working with my RN app. I am using Expo and VS Code and am not running the app with Xcode or Android Studio. There seems to be many options to getting the camera roll available in an…
Olivia
  • 1,843
  • 3
  • 27
  • 48
12
votes
3 answers

undefined is not an object (evaluating 'CameraManager.Aspect')

I've been getting this error when setting and linking my react-camera with my project on React-Native. I tried all the solutions found in google but still not working, I also tried this video https://www.youtube.com/watch?v=pJseuSOC8HA and not…
paolacl
  • 191
  • 2
  • 6
12
votes
1 answer

Using react-native-camera, how to access saved pictures?

My goal is to use the react-native-camera and simply show a picture on the same screen, if a picture has been taken. I'm trying to save the picture source as "imageURI". If it exists, I want to show it, if a picture hasn't been taken yet, just show…
Arsalan S.
  • 445
  • 3
  • 5
  • 13
11
votes
5 answers

How to snap pictures using expo react native camera?

I have just started using React Native with Expo so I am kind of confused. So, I have made a camera component which I imported in the main screen. Everything looks good. But I can't take pictures. I cannot click the snap icon and save the image. Is…
Arjun Kashyap
  • 623
  • 2
  • 10
  • 24
11
votes
1 answer

How to put an image on top of the view of the camera with react-native

I'm interested in putting a view on top of the camera view with React-Native, something similar to this: Is there a plugin or an approachable way to do this?, for now, I'm only interested in putting an image and recognize a certain person in a…
Nico
  • 1,241
  • 1
  • 13
  • 29
10
votes
2 answers

react native camera Gradle sync failed: Could not find method google() for arguments [] on repository container

I am trying to install react-native-camera. I did npm install react-native-camera react-native link react-native-camera. It gives me the error saying Gradle sync failed: Could not find method google() for arguments [] on repository container. I…
Green Eagle
  • 227
  • 3
  • 12
10
votes
6 answers

Barcode scanning using react native

I am using react-native-camera to build a barcode scanner for Android and iOS both. I am able to scan the barcode in iOS but the issue is there is no visual for the scanning boundary. And I want the whole screen to be able to scan the bar code not…
Rohit Goyal
  • 1,521
  • 3
  • 24
  • 49
9
votes
3 answers

Is it possible to get the binary data from an image in React-Native?

I'm using react-native-camera and I'm having trouble getting the image as binary data in react-native. I need this to be able to upload images to our backend. The only thing I manage to get is uri's to the image and then maybe sending that as…
nullforlife
  • 1,354
  • 2
  • 18
  • 30
7
votes
0 answers

save captured image to custom - secret album in react-native

Within my react-native app, I need to take a picture and save it to new - custom album. Album should not be able to be accessed through photos over menu, thus I need to make album private, so captured photos can only be accessed through the app…
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54
1
2 3
22 23