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
3
votes
0 answers

Use camera in react native app with background audio playing? (Like a song from music app)

When recording a video or opening the camera with react native background audio is paused. Is there a specific or recommended way to allow background audio to play when the camera is open? I am using react-native-camera and have used…
hugger
  • 426
  • 4
  • 19
3
votes
1 answer

null is not an Object (evaluating '_nativeInterface.default.getPhotos') in Cameraroll in react native

Using camera roll library from react native community and import correctly named. Below is the code for same using expo directory to init the project import { ActionSheetIOS, ListView, StyleSheet, Text, TouchableOpacity, View, Platform} from…
3
votes
5 answers

camera.takePictureAsync(options) is not a function in react native camera

Hello im new in react native and i just building my first react native project with camera without expo. I installed it with npm install react-native-camera and then linked it with react-native link react-native-camera. The camera run successfuly, …
Yoga Utomo
  • 335
  • 1
  • 4
  • 11
3
votes
1 answer

Granting permissions in React Native

I have a project which uses the React Native Camera library and also CameraRoll from vanilla React Native. When I open the application the app requests Camera permissions, but I don't know why. Is this only because I specified this in my…
dclipca
  • 1,739
  • 1
  • 16
  • 51
3
votes
3 answers

React Native CameraRoll permission denied

After pressing a button the following code is executed: takePicture = async function() { if (this.camera) { const options = { quality: 0.5, base64: true } const data = await this.camera.takePictureAsync(options) …
dclipca
  • 1,739
  • 1
  • 16
  • 51
3
votes
1 answer

How to capture image and video using react-native-camera-kit?

I don't know how to capture image using react-native-camera-kit and neither how to record video using it. Please help! I've tried this const image = await this.camera.capture(true); but it gives me an error - java.lang.Boolean cannot be cast to…
Shubham Bisht
  • 577
  • 2
  • 26
  • 51
3
votes
0 answers

How to make camera capture faster in react-native-camera?

takePicture = async function() { if (this.camera) { const options = { quality: 0.5, base64: true, pauseAfterCapture: true }; const data = await this.camera.takePictureAsync(options); this.setState({path: data.uri}); …
3
votes
2 answers

How do I upload an image taken by React-Native-camera to Firebase storage?

takePicture = async function() { if (this.camera) { const options = { quality: 0.5, base64: true, mirrorImage: true }; const data = await this.camera.takePictureAsync(options) this.setState({path: data.uri}) } …
3
votes
0 answers

Capture image (from background) when screen is locked

I'm trying to implement a functionality to capture image through front camera when someone tries to unlock my device a number of times. I believe it's possible on Android and some existing Android apps already do this. I'm not sure if it's possible…
John M.
  • 2,642
  • 7
  • 26
  • 55
3
votes
1 answer

React-Native Camera did not open in android

I'm using expo for React-Native. React-Native camera works fine in iPhone but in android device it's not opening. In Android device it open when i open it with expo but when i generate apk file it's not opening. I checked the log it says camera…
shamim khan
  • 467
  • 7
  • 24
3
votes
1 answer

Camera Video not Working - React Native

Question I have been trying to figure out why this is not working for some time. I have used a lot of example code, however I still cannot figure it out. Code takeVideo() { console.log('started to take video'); this.camera.capture({ …
zoecarver
  • 5,523
  • 2
  • 26
  • 56
3
votes
1 answer

How to display Image from camera roll url using react-native-camera?

I use react-native-camera for capturing images and saving them in cameraRoll (CaptureTarget) for iOS devices, on capture I get image path in the following form "assets-library://asset/asset.JPG?id=8B55D3E5-11CE-439A-8FC6-D55EB1A88D7E&ext=JPG" How…
Abhinav Singh
  • 7,880
  • 1
  • 23
  • 33
3
votes
2 answers

barcodescanner in react-native for both ios/android

Hai i am trying for barcode scanner in react-native, I used react-native-camera it shows some errors which i mentioned in it https://github.com/lwansbrough/react-native-camera/issues/242. is there any module for qr code reader in react-native, for…
Hussian Shaik
  • 2,559
  • 9
  • 37
  • 57
3
votes
1 answer

What url should i give on tag to save to CameraRoll react-native?

While saving image to camera roll what uri should be given to the the 'tag' to save to camera roll. I tried to give the path of camera roll as asset-library://asset/ but throws an error saying Could not find asset with UUID (null)
Aakash Sigdel
  • 9,060
  • 5
  • 33
  • 38
2
votes
1 answer

react native vision camera freezing on taking a picture

I just need to take and store a picture. I am using react-native-vision-camera but when I take a picture, using .takePhoto() method. It freezes. I am also using "qualityPrioritization: "speed". I am testing it on an android emulator. const…
kolman
  • 330
  • 1
  • 3
  • 12