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

CameraRoll.saveToCameraRoll(tag,type) is deprecated use the save function

I am trying to save captured images and video recording from phone camera to my device gallery, but I get permission denied and error message stating that CameraRoll.saveToCameraRoll(tag, type) is deprecated. Use the save function…
Benjamin Ikwuagwu
  • 377
  • 1
  • 9
  • 28
1
vote
1 answer

How can we merge multiple image into single image in react native project

In one of my project I am using RNCamera for capturing image. Also the camera screens have custom components. One of the component showing with camera is compass image. I need to merge the compass image with the captured image. I have tried this…
mmg
  • 11
  • 2
1
vote
2 answers

How to read image as binary/blob in reactnative

I use react-native-camera to take a picture and it will save in the mobile like file:///data/user/0/xxx/cache/Camera/4b1bde90-fa5e-4f91-aac1-029a8b67b3fc.jpg now I want to upload this image to server and my API scheme is as below const…
1
vote
0 answers

How to test React Native Camera with E2E Detox with Mocha Runner

I am working one project for E2E testing react native with Detox but find a problem. I can not mock my camera to deal with detox E2E. Some of the documentation is there but it is hard to implement once there no working stuff. Any help would be…
Faris Rayhan
  • 4,500
  • 1
  • 22
  • 19
1
vote
1 answer

How to make changes to third party package in React Native 0.60+

I'm struggling with making changes and possible a pull request for a third party react native package with cocoapods and auto linking. In this case I want to add some minor functionality to React Native Camera. And I've forked the repo. While…
Johan Nordberg
  • 3,621
  • 4
  • 33
  • 58
1
vote
2 answers

How to create a custom React Native component with Android Java Camera View module?

I am trying to build a react-native android app for augmented reality purposes which I need a live camera preview displayed on the screen. So I'm trying to make my own Android camera component instead of using React Native's default…
1
vote
1 answer

React native camera doesn't return full file path

I just installed the package and I'm trying to access the picture, although I'm getting a directory without the image. Dependencies "react-native": "0.61.5", "react-native-camera": "^3.22.0", My Code takePicture = async () => { if (this.camera)…
Openwell
  • 336
  • 1
  • 3
  • 9
1
vote
0 answers

react-native-camera freeze when back on screen

I'm developing an application for a school project, and in this application I have a camera component in each view. When I go back on a view the camera freeze. There is my code of one view: class LoginView extends React.Component { …
1
vote
2 answers

react-native-camera : Could not find com.google.android.gms:play-services-vision:16.0.0

I installed react-native-camera and everything works fine on IOS. When I run npx react-native run-android I get the following errors. FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task…
Muljayan
  • 3,588
  • 10
  • 30
  • 54
1
vote
2 answers

how to detect a face with react-native-camera facedetector?

I am trying to detect face with react-native-camera, I want to know how can we detect an individual's face, there is no proper documentation about the mlkit. await FaceDetector.detectFacesAsync(data.uri) this statement is just returning face object…
1
vote
0 answers

Record separate audio (wav) and video (any) files at the same time in React Native?

I'm trying to create a react-native CLI app that can record audio and video at the same time, or at the very least allow me to extract the audio channel from the video locally. The video stays local and the audio I send to a server for processing.…
OgreNick
  • 11
  • 2
1
vote
0 answers

Remove react native dependency

I'm trying to remove react-native-camera from my react native project, and after attempting to remove it, the flag: uses-permission android:name="android.permission.CAMERA is still showing on my build AndroidManifest.xml…
xDG
  • 309
  • 6
  • 18
1
vote
1 answer

React-Native RNCamera onGoogleVisionBarcodesDetected cannot detect QR_CODE type

I have been implementing a barcode scanner app. Everything was working good until today. However, today the app started to detect the barcodes differently. I get the barcode type as 'TEXT' instead of 'QR_CODE'. My code is like this …
riyoz
  • 431
  • 1
  • 6
  • 15
1
vote
1 answer

iOS recorded video is not playing in android device?

I am using react-native camera to record video. Its play in iOS but not play in android Extension is : .mov for iOS and .mp4 for android
1
vote
1 answer

React-native-camera, run a fucntion if user denies camera permission

I have RNCamera set up as follows: { this.camera = ref; }} orientation='portrait' captureAudio={false} …
Mandalina
  • 446
  • 5
  • 22