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

Failed to build cause of Incompatibilite with version of firebase and camera react native

Here is what im using : "react": "16.8.3", "react-native": "0.59.10", "react-native-camera": "3.3.0", "react-native-firebase": "5.5.6" I need react-native-camera for scanning barcode, but when i try to add react-native-firebase but its failed to…
0
votes
0 answers

Not Able to run react native application after installation of react native camera for bar code scanning

BUILD FAILED in 3s error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for…
0
votes
2 answers

React native camera not working as expected with expo

I want to make a qrcode reader with react native,and i'm using expo.I'm following the guide based on the official documentation here : react-native-qrcode-scanner I've installed react-native-camera succesfully by running npm install…
Christian LSANGOLA
  • 2,947
  • 4
  • 22
  • 36
0
votes
2 answers

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

I want upload image taken with react-native-camera to https://github.com/invertase/react-native-firebase storage on RN I can't upload image. I tried image-picker-library and did work. import React, { Component } from 'react'; import {Image, View,…
0
votes
2 answers

React Native camera on iOS is showing blank screen

I am developing a React Native application for learning purposes. I am using this package, https://github.com/react-native-community/react-native-camera. But when I open the camera page/ screen, it is just showing the blank screen with a spinner on…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
0
votes
1 answer

React native camera recordasync start failed error

When I click on the record button on android device react-native-camera throw an error "Start failed". Error: start failed. at createErrorFromErrorData (NativeModules.js:155) at NativeModules.js:104 at MessageQueue.__invokeCallback…
0
votes
1 answer

react-native-camera Cannot read property 'Constants' of undefined on android

I'm aware of this issue. I have installed and configured the react-native-camera this way: yarn add react-native-camera --save react-native link react-native-camera added these to AndroidManifest.xml:
Kasra
  • 1
  • 1
  • 3
0
votes
1 answer

React-native-camera flash permission view when camera status is ready

I am using react native camera with child functions as shown or the docs (https://github.com/react-native-community/react-native-camera/blob/master/docs/RNCamera.md). When I try first try to use the camera it shows the permission view which works as…
Carlos Yanes
  • 335
  • 5
  • 15
0
votes
1 answer

Is there a way to mantain the position of ScrollView in react-native when using conditional rendering?

Im using react-native-camera with a group of buttons that take pictures, Since I want to fill my app with more content in one single screen then Im using a ScrollView component. Whenever I press a button to take a picture I render the camera…
gangrelg
  • 93
  • 19
0
votes
2 answers

Possible Unhandled Promise Rejection (id: 0): Error: Permission denied (while saving the image via "CameraRoll.saveToCameraRoll()")

ss from my debugger I am getting Permission denied when trying to save the image to the gallery via "CameraRoll.saveToCameraRoll()" from react native. my code is below==> takePicture = async function() { if (this.camera) { const data = await…
Fazle Rabbi Ador
  • 759
  • 1
  • 7
  • 19
0
votes
0 answers

null is not an object (evaluating 'CameraManger.Aspect') on android genymotion emulator

I am trying to capture images using react-native. I followed the below link to do this. https://medium.com/@masochist.aman/capturing-images-with-react-native-203e24f93eb9. I have installed all required pages. But I am getting above error. I googled…
Vidya
  • 153
  • 1
  • 2
  • 14
0
votes
1 answer

react native camera wont work on second invokation

React native camera won't work on second invokation in Android. On the second invokation the app crashes. I am using react-native: 0.56.0 react-native-camera: 1.6.4 It's the same when I use latest version of the react-native-camera. I can't…
Banid Azin
  • 180
  • 2
  • 17
0
votes
1 answer

How can I get height of a camera preview?

Using react-native-camera (RNCamera), I am struggling to set the height of my camera preview to be correct when the preview is the full width of the window, with the full preview being visible. This question assumes the device is in portrait mode at…
markmoxx
  • 1,492
  • 1
  • 11
  • 21
0
votes
1 answer

Take photo immediately after changing camera type with react native

I am trying to take a photo using react native camera immediately after changing from back to front camera. To give you an idea, the code looks kind of like this: state = { type: Camera.Constants.Type.back } takePicture = () => { const…
Luke Tan
  • 2,048
  • 2
  • 13
  • 21
0
votes
1 answer

Uploading video to server

I'm using react-native-camera(^0.6.0) in my app, I have to upload the recorded video to server as multipart data. In android they are posting like this, { _parts: [ [ 'file', { name: 'VID_20181130_150959.mp4', uri:…
James Matthew
  • 435
  • 1
  • 6
  • 10