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

How can i automatically crop an image just taken with react-native-camera

I have a feature that captures a bank card, how can I crop the image of the card inside the camera mask. I use react-native-camera to take pictures and use BarcodeMask to create masks.Here is the code:
0
votes
1 answer

React-native camera showing blank screen

Not able to see the camera , showing blank screen on screen using it on real device. Below is my code for the same import React, { useRef } from 'react'; import { AppRegistry, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import {…
sahil555
  • 152
  • 2
  • 11
0
votes
1 answer

React native camera fails to render

I have a problem with RNCamera. It was working before but stopped now and I am not sure why. Problem is that it is not rendered, pop up to request permission is not shown and I can see this error in logs: Possible Unhandled Promise Rejection (id:…
Matej Procházka
  • 217
  • 2
  • 14
0
votes
1 answer

Element type is invalid: expected string or a class/function but got undefined

The rest of the error messages says "you likely forgot to export your component from the file it's defined in or you might have mixed up default and named imports. This is my Camera.js file: import React from 'react'; import {CameraKitCameraScreen,…
0
votes
2 answers

React Native ImageBackground showing white image only

My ImageBackground module is only showing a white background. The code shown is basically a boilerplate template from React's official documentation on ImageBackgrounds. My uri is not null. "props.route.params.image" is type TakePictureResponse from…
user7842007
0
votes
2 answers

React-native-camera appears as black screen

I'm trying to implement an eKYC for my application, which included 3 camera screens (2 screens with back side camera, 1 with front side camera) On some Android devices (Samsung Note 8, Xiaomi Redmi Pro 8, Vsmart Joy 3, ...), the third screen's…
0
votes
1 answer

TypeError: CameraManager.checkIfRecordAudioPermissionsAreDefined is not a function

I'm trying to use the component RNCamera from 'react-native-camera' but after I accept permissions for my app to use my camera I get this error: [Unhandled promise rejection: TypeError: CameraManager.checkIfRecordAudioPermissionsAreDefined is not a…
jeffrey
  • 3
  • 1
  • 2
0
votes
0 answers

react-native-camera iOS base64 invalid

Working on a simple camera based application that needs to generate a base64 encoded data uri version of the image. Ideally avoiding creating and storing a file on disk. react-native-camera has options for this and successfully generates the…
Glorifundel
  • 746
  • 1
  • 8
  • 16
0
votes
0 answers

React-Native-Camera not working on IOS but working on Android, IOS application crashes

I am new to react-native, I worked with different work-arounds but got fail nothing gone to work, when I use react native camera in my application it perfectly works on Android device or simulator but when it comes to IOS application crashes, many…
Sabaoon Bedar
  • 3,113
  • 2
  • 31
  • 37
0
votes
0 answers

Error: Failed to take picture - Preview is paused in React Native

I implemented camera in react-native. When i click on Snap to capture image, it shows Error:Failed to take picture - Preview is paused resume it before taking a picture.My code is below: { this.camera = ref; …
Moon Food
  • 1
  • 2
0
votes
0 answers

React Native Camera makes android device camera unavailable and eventually crash

I am building a react native app, using react-native-camera, after some dependencies upgrade I've encountered a problem with the Camera API, when you click a button in my app it navigates you to a Tab View component where the first tab is the Camera…
0
votes
1 answer

navigate to another page with data in react native

I'm using react-native and react-navigation v5. I wanted to navigate to another page after the function executes. I am using react native camera. After I take the picture I want the app to navigate to another page with the data of the image. is…
0
votes
2 answers

Where is this file located on device?

I'm using the react-native-camera module in order to record video. After it records it gives me the uri of the location of the .mp4 video as: file:///data/user/0/com.cassette_code/cache/Camera/a608b09c-e572-4056-9927-c0e8988cd254.mp4 I don't know…
0
votes
2 answers

Retrieve fileSize and playableDuration of Video from React-native cameraRoll library

I am trying to print the Total Duration and the video size with each video using cameraRoll library for React native, but it is displaying null for all videos. Can this be fixed, so i can display each videos total duration and video size. Link for…
0
votes
0 answers

RefrenceError: Can't find variable in react native

I tried to access all the files in a custom folder I created on my RNCamera roll app to create a gallery with it. In my code I believe i specified the variable "videos", but still am getting a reference error: "can't find variable videos", what do i…