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

send image taken from ReactNativeCamera to Nodejs backend that has multer?

I have a frontend with React native and I implemented the following: import React, {Component} from 'react'; import Config from 'react-native-config'; import { Button, Alert, Image, Text, View, StyleSheet, TouchableOpacity, …
burdk
  • 79
  • 12
1
vote
2 answers

react-native-camera (android): takePictureAsync() throws error

After calling takePictureAsync() from react-native-camera, i'm getting this error: { "framesToPop": 1, "nativeStackAndroid": [], "userInfo": null, "message": "Preview is paused - resume it before taking a picture.", "code":…
fadzb
  • 429
  • 4
  • 9
1
vote
0 answers

RNCamera - onFaceDetectionError not working in both Android and iOS

I am not able to find not detecting the face scenario using RNCamera. dependencies: "react-native": "0.61.5", "react-native-camera": "git+https://git@github.com/react-native-community/react-native-camera.git", this is how I am using the…
1
vote
2 answers

where is the image capture by RNCamera saved?

I have used RNCamera in my project but I don't know where is it saved in the cache. How can I preview the image and delete the image. The app is taking a lot of cache memory in my android phone.
1
vote
0 answers

Make react child component to occupy full screen

Maybe I missed something after going through react native camera docs. I want to create a component that will launch RNC full screen. My challenge is creating a child component that will hold the full screen view of the camera. I currently have the…
1
vote
0 answers

React-Native-Camera Limit Camera Area

I have some problems limiting the Area of a RNCamera to its surrounding view. All related tickets I found here did not provide a proper solution with RNCamera. My Component has flex column design with two views. View 1: as a wrapper for the…
Daniel
  • 109
  • 1
  • 9
1
vote
0 answers

react-native-camera > takePictureAsync() throws err code E_CAMERA_BAD_VIEWTAG in android device

While using takePictureAsync() method of react-native-camera, it throws error(android) like { "framesToPop": 1, "nativeStackAndroid": [], "userInfo": null, "message": "takePicture failed", "code": "E_CAMERA_BAD_VIEWTAG", "line": 2189, …
Sagar M
  • 972
  • 8
  • 13
1
vote
1 answer

React navigation navigation.navigate doesn't go to next screen while using camera

I am using react-navigation 3.6.1 an react-native-camera 2.2.2. When I take a picture the button to go to the next screen takes doesn't do nothing at first press. Has to be pressed multiple times This is for react native 0.59.4 in ios development.…
1
vote
0 answers

Take picture and save it to camera roll

I want to take a picture in my Android app and save it to the camera roll. I'm using CameraRoll and RNCamera but the image is nowhere to be seen in the camera roll. The function is: ... import { RNCamera } from "react-native-camera"; import {…
1
vote
0 answers

Motion detection on live streaming with react-native-webrtc

can you guys please help me with the react-native-webrtc. I have done security camera applications like Alfred using react-native-webrtc it's working fine. I'm getting difficult to get the motion detection on live streaming because of I can't able…
1
vote
1 answer

react native run android has an error. Cannot change dependencies of configuration ':packagename:androidApis' after it has been resolved error

I have a React Native project with many libraries like React Native Fetch Blob, React Native Camera, etc. For run the project I clone my repository and install node modules so run react-native run command encounter below error: After hours of…
1
vote
1 answer

Use 'react-native-camera' with the app closed

It is possible to prevent 'react-native-camera' from unmounting when the application goes in foreground? I've used '@voximplant/react-native-foreground-service' to easily create a foreground service with success, but it seems that…
1
vote
0 answers

Adding 'react-native-camera' dependency Breaks the Project

I have a project that includes a few native modules. When I try to integrate the 'react-native-camera' the projects fails to build. Is there any option that I can localize all the dependencies of react-native-camera without affecting the others? Or…
1
vote
1 answer

Androidx and gradle feature errors after running update

I returned to a react native project after about a month or two and updated the packages along with all the packaged. However, it seems that in the time since I worked on it there have been some major changes which is now preventing react-native…
1
vote
1 answer

How to turn off the camera on tab or view change

Camera doesn't turn off when change Tab/View render() { const { hasCameraPermission } = this.state; if (hasCameraPermission === null) { return
csu
  • 385
  • 1
  • 7
  • 20