Questions tagged [react-native-vision-camera]
54 questions
0
votes
1 answer
Cannot capture photo with react-native-vision-camera
import {Button} from '@rneui/base';
import React, {useState, useEffect, useRef} from 'react';
import {
View,
TextInput,
Text,
FlatList,
Modal,
TouchableOpacity,
Image,
StyleSheet,
} from 'react-native';
import {Camera, useCameraDevices} from…

Blnk
- 15
- 4
0
votes
0 answers
how to focus the camera to QR code on scan in react native?
I try to scan QR code using react-native-qrcode-scanner or vision-camera-dynamsoft-barcode-reader. its perfectly work on android device but its fails to scan or focus the QR code of size (1cm * 1cm) in iOS device. is any way to improve QR code…

Gaurav Saini
- 1
- 1
0
votes
0 answers
crop image in react-native in background
I am using react-native-vision-camer to took picture of some text, and later I provide it (uri to cached image) to @react-native-ml-kit/text-recognition (OCR lib for text-recognition).
It occurs that I only need central part of image (like 30% of…

Sebastian Łuszczek
- 13
- 4
0
votes
0 answers
react-native-video fit to my fixed width height of an item of a flatlist
I have a flatList that render video and photo of when i use resizemode to cover it cover the space but cut some portion of the video and if use resizemode to contain then it will not fit the screen width but fit the height,my used code of the video…

React_Coder
- 353
- 2
- 12
0
votes
0 answers
React Navigation + React Native Vision Camera: keep camera visible through navigation animation
I'm developing an App using React Navigation to navigate through stack screens. One of these screens contains the Camera component from RN Vision Camera (https://github.com/mrousavy/react-native-vision-camera). I navigate to that screen using a…

EnzoBH
- 1
- 1
0
votes
0 answers
Runtime JAR files in the classpath should have the same version wehn installing react-native-vision-camera
I have a react native app and it builds fine. However, when I try to install react-native-vision-camera, it failes to build with this message.
> Task :react-native-vision-camera:compileDebugKotlin FAILED
w: Runtime JAR files in the classpath should…

chewie
- 529
- 4
- 17
0
votes
1 answer
react-native-vision-camera in react native 0.71.1 showing CameraView is not fabric compatible yet
I am using react-native-vision-camera in rn-0.71.1, there I used the code from example app provided in that repo. When opening the camera it is showing CameraView is not fabric supported yet.How can i fix this?

Gokulakrishnan
- 97
- 1
- 5
0
votes
0 answers
How can I take close-up photos that are still clear on a phone that only has "ultra-wide-angle-camera"?
I'm doing a function about take a photo and using react-native-vision-camera library, however when i take a photo of the ID card at close range by back camera, it's very blurry and can't be seen clearly. I'm using Samsung Galaxy S22 device, i traced…

Mr Kenly
- 1
0
votes
1 answer
React native vision camera ultra wide device doesn't work
I am trying to implement use of ultra wide camera on iphone 12 with react native vision camera but can't get camera to show ultra wide like it does on phone camera when select 0.5x zoom.
This is camera data:
{
"devices": [
…

1110
- 7,829
- 55
- 176
- 334
0
votes
0 answers
View Manager Error during going back React Native Vision Camera
When users clicks a button, i am navigating user to new screen. In the new screen a camera opens by using react native vision camera. But when i am pressing back buttons "View Manager for tag" error is showing instead going back to previous screen.
…

Tanvir Rahman
- 651
- 1
- 11
- 31
0
votes
1 answer
React Native Vision Camera - Bar Code Scanner crashes the android app
I used vision-camera-code-scanner to scan bar codes. the code is working fine on IOS. but android it gives several errors including build fingerprint error. here is some error log of it.
> 02-14 00:17:17.605 494 2654 W libc : Unable to set…

Vidurajith Darshana
- 388
- 5
- 15
0
votes
1 answer
How to changes the photo width and height in React Native Vision Camera or chop it?
I am simply trying to get a square image and lower the size of the image as much a possible while keep image text clear.
This is my attempt but it does not work.
const capturePhoto = async () => {
const options = {
qualityPrioritization:…

questerstudios
- 111
- 1
- 6
0
votes
0 answers
How to record a video using React-Native on web?
I am trying to record a 10 sec video through the webcam on a web app using React-Native.
I found a couple of libraries for Android and iOS like react-native-camera, but these don't seem to work similarly on the web.
This is strange, because I'm…

Sarthak Rastogi
- 31
- 3
0
votes
0 answers
react-native-vision-camera device is null
I am trying to run a basic example of react-native-vision-camera and getting the error device is null. I checked the app permissions through android phone and camera permissions are granted. Here is my current code:
import React,{useEffect,…

Osman Khalid
- 778
- 1
- 7
- 22
0
votes
2 answers
The Camera is not ready yet! Wait for the onInitialized()
I am trying to implement react-native-vision-camera into my React Native app, and it works perfectly as expected on iOS, but on Android it refuses to work properly.
On Android, I am greeted with the following error...
[session/camera-not-ready] The…
user18899735