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
0 answers

How an error message can be shown when barcodes are not recognized by RNcamera ( react-native-camera)

I am new to React-native. I have a requirement for barcode scanning and I am using react-native-camera for this. I want to show error message to the user when the barcodes are not recognized for some reason. This is code. class Scan extends…
0
votes
2 answers

Browser opens after scanning QR code- ReactNative

I’m using react-native-camera module to scan a qr code. But after scanning that it always opens the browser and try to access qr value as url. How to stop this browser opening thing. I just needed to get the qr value.. any help. Here is my…
0
votes
0 answers

react-native-camera---undefined is not an object (evaluating '_react.propTypes.oneOfType)

I want to open barcode scanner project on my device but I have a problem with this. I think, I import react-native-camera wrong way in my project. Can you help me about this problem? npm: 6.4.1 react-native-cli: 2.0.1 react-native: 0.57.1 ** My…
0
votes
2 answers

Using face detection feature of react-native-camera

I'm trying to do real-time face detection in my React Native app using the react-native-camera module. I have the base module (just the camera) working fine in the app, and importing the FaceDetector class works fine, but when I add an…
Isaac Wasserman
  • 1,461
  • 4
  • 19
  • 39
0
votes
0 answers

An issue occurred evaluating project ':react-native-camera'

I used react-native-camera in my project and got this error: A problem occurred evaluating project ':react-native-camera'. Could not find method compileOnly() for arguments [com.facebook.react:react-native:+] on object of type…
Banafshe Alipour
  • 1,041
  • 4
  • 12
  • 27
0
votes
0 answers

react-native-camera runs slowly while navigating back from a camera screen

It also runs slowly while navigating forward to a camera screen before i do this: componentDidMount() { super.componentDidMount(); // 延迟处理 InteractionManager.runAfterInteractions(() => { this.setState({ created:…
YouCii
  • 221
  • 2
  • 7
0
votes
1 answer

RNCamera text recognition fails on Portrait mode

I'm developing an app using react-native-camera, RNCamera, on ejected mode. BTW, the text recognition feature is supposed to work only for Android. On Portrait mode, it only detects Single or double characters on each detect event, like 'O',…
diogenesgg
  • 2,601
  • 2
  • 20
  • 29
0
votes
1 answer

react-native-camera is not working in iOS

Hi I want to use camera in my react-native app. For this I am following this: https://github.com/react-native-community/react-native-camera Its is running in Android in Windows Machine, but while am coming to iOS it is not running Mac OS. The app is…
WeCan
  • 547
  • 2
  • 9
  • 23
0
votes
1 answer

React-Native-Camera Amazon Kindle 7 (5.1.1) Rear Camera captures Solid Green

For some reason 2 Amazon Kindles that I have for testing running the latest updates (Android 5.1.1) is producing just a solid green colour when capturing with React-Native-Camera. I've also tested on my Xiaomi Mi6, a Mi5 and also an Asus Zen 8"…
API
  • 125
  • 2
  • 12
0
votes
1 answer

undefined is not an object RCTCameraRollManager of React-Native CameraRoll

I need to save captured photo to cameraRoll in my react-native app. I uses react-native-camera and I try to save photo to roll with CameraRoll of React-Native. CameraRoll.saveToCameraRoll(uri, 'photo'); I keep getting this error of undefined is…
Ali Zeynalov
  • 2,867
  • 8
  • 30
  • 54
0
votes
0 answers

Testing two components from the same module with Jest

So I'm working on setting up some Jest tests for my React Native app, but I'm running into issues when trying to mock react-native-camera. react-native-camera is currently split into two implementations - RCTCamera, and RNCamera - and I am using…
Socratease
  • 191
  • 3
  • 10
0
votes
1 answer

Error on creating very very simple app using react-native-camera

I recently wanted to create a react-native app with camera and started working with react-native-camera so I just did this: $ react-native init testApp2 $ npm install --save react-native-camera $ react-native link react-native-camera $ react-native…
0
votes
1 answer

react-native-camera barcode scanner freezes, because it scans too fast

I am trying to use the barcode scanner from react-native-camera. First, off it scans a QR-code and extracts a String, after that it navigates to the next Screen with react-navigation. In the second screen, it makes an API-call. Now if I go back to…
0
votes
2 answers

Impossible to build after installing React-Native-camera

All the day I tried to build my project after linking react-native-camera. I think the issue is coming from the dependencies and google-play-service but I am not sure. I tried many other configurations even if the build error is different, it's…
0
votes
1 answer

react-native-camera build error on android

Hi I'm using the following stack: - react-native-camera 1.1.1 - react-native 0.55.3 - gradle 3.1.2 I did all the steps described in the docs for linking the project (https://github.com/react-native-community/react-native-camera). The gradle sync…