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 to switch from camera button to video record button in react native

I have camera capture button and video recording button on the same container, I want to be able to have camera button when app is launched, then when I a tap Text "Video", the it will switch to video button to record. I have a screenshot of…
0
votes
1 answer

Tried to use permissions API while not attached to an activity

I am trying to save captured picture to my device gallery and fetch it back to display in my project. But the mean issue here is permission deny issue. I have setup "AndroidManifest.xml" with these: but still I still get error, here is my…
0
votes
1 answer

TypeError: null is not an object (evaluating ''this.state.torchon')

I don't know what am doing wrong in the code below...I want to toggle flash light on/off during camera capturing, but my code is not working, I tried binding the state in different ways but is still not working for me...Below is my code. Please I…
Benjamin Ikwuagwu
  • 377
  • 1
  • 9
  • 28
0
votes
0 answers

Error Super expression must either be null or a function

I am trying to use a camera in React Native app but getting this error. error Super expression must either be null or a function. I have used the code from the following link…
0
votes
0 answers

How we get exif metadata info before capturing Image in React Native

I am trying to get EXIF Metadata informations before capturing Image. I am using React Native Camera library for implementing camera and their properties for defaults settings. In my point of view after capturing only i am getting EXIF metadata…
Sreejith S
  • 376
  • 2
  • 12
0
votes
1 answer

Pinch-to-zoom for components layered on top of React Native Camera

I've been using the react-native-camera library to handle camera views in the app I'm building, and I've also been asked to add some shapes like rectangles, crosses and circles on top of it as a guide to help the user frame the image correctly. I…
apgsn
  • 681
  • 8
  • 17
0
votes
2 answers

react-native-camera crashed my application

When I add dependencies for QrCode Scanner(react-native-camera) and running project, my app is crashing and is not working.
0
votes
1 answer

using react-native-camera with react-native-navigation

I just started react-native and I made a multi screen android application (by using react-native-navigation. My screens are functions as shown in examples of screen navigation but now I want to use the camera in the 2nd screen. An idea of how my…
0
votes
0 answers

How to enter barcode manually to fetch the data in react-native?

I'm using react-native-camera to scan the barcode of type code128 only which is working fine. Now, the app scans the barcode and on successful scanning navigates to a new page displaying the type of barcode and the details from the barcode. I also…
Vinay N
  • 249
  • 1
  • 8
  • 32
0
votes
1 answer

how to save captured image to application folder in react native?

I am new to react native I am using react native camera library for capturing the image. I have captured the image now I want it to save on application folder like on assets or src folder. I have the image uri.How I can do that plz let me…
Divya Lal
  • 25
  • 1
  • 8
0
votes
0 answers

Handling Binary String in Javascript

The Problem I am using a phone camera barcode scanner on React Native to scan a barcode, this library returns me a String of the RawData and what i need is a Byte Array of the data because i need to decrypt it to obtain a printable String. The…
0
votes
1 answer

React Native - useRef is giving null value on RNCamera

I am using react-native-camera for the first time and I am using functional component for that. I want to open the camera on button click but using the ref is not working. Here is my code : const camContainer = () => { const cameraRef =…
0
votes
1 answer

Error capturing picture with RNCamera in clojurescript re-natal

I'm trying to write the following js code for taking pictures using react-native-camera in re-natal: { this.camera = ref; }} style={styles.preview} …
zengod
  • 1,114
  • 13
  • 26
0
votes
1 answer

RNCamera crashes in iOS

I'm developing a video recording app in React Native and I'm using 'react-native-camera' package. Of course, I used RNCamera and the thing is it's fine in android but crashes in iOS. When I open the screen where RNCamera is used, the app just…
Andrew Terex
  • 341
  • 2
  • 4
  • 10
0
votes
1 answer

How to transfer photos to x-www-form-urlencoded immediately after taking a picture EXPO

I want to take a picture, save it to an album and send the image right away. (Do not select from album.) There is no problem in taking the current picture, saving it in an album and checking the uri. but the x-www-form-urlencoded sending process…