Questions tagged [expo-camera]
104 questions
0
votes
0 answers
expo-camera error “camera not working” on android web app upon toggleswitch camera type
I am using expo-camera on my app that can be run to a web on android/ios. Setting camera type works but when I try to switch/toggle camera on android i got an error “camera not working”

mingmingming
- 345
- 2
- 4
- 12
0
votes
0 answers
gradlew.bat builds successfully but yarn fails. ...incompatible with Gradle 8.0
I have an expo project with Gradle 7.5.1 but something/package trying to build with a different grade version and is not compatible. I cannot find what is the problem.
myapp\android> .\gradlew.bat --warning-mode=all
...
BUILD SUCCESSFUL in 15s
but…

Sholan
- 1
- 1
0
votes
0 answers
TypeError: undefined is not an object (evaluating '_expoCamera.Camera.requestCameraPermissionsAsync')
I'm trying to make a working camera with possibility to save and share the photo that user has taken. For some odd reason cameras permissions request doesn't pass through, hasCameraPosition is undefined. Any idea why?..
let cameraRef = useRef();
…

fakermaker
- 57
- 8
0
votes
1 answer
How to mock expo-camera requestCameraPermissionsAsync() response?
I am trying to do a unit test to one of my react native components.
One scenario requires me to mock expo-camera requestCameraPermissionsAsync() method but don't know how. What I'm trying to do is to mock the status to always have the granted…

fmsthird
- 1,745
- 2
- 17
- 34
0
votes
0 answers
Hello,everyone I am new to react native, I am trying to build a page when you on the page and the camera shows up like snap chat camera on the phone
import React, { useState, useEffect, Component} from 'react';
import { StyleSheet, Text, TouchableOpacity, View, SafeAreaView, Image } from 'react-native';
import Ionicons from 'react-native-vector-icons/Ionicons';
import { Permissions } from…
0
votes
0 answers
Expo camera.recordAsync({quality:'2160p'}) 'Error: Error retrieving camcorder profile params'. Error thrown when trying to set record quality
Environment
expo 46 -- expo-av 12.0.4 -- expo-camera 12.3.0 -- android 12 -- Samsung S8 tablet -- expo-managed workflow
Packages In Question
expo-camera
Problem
Front Facing Camera has ability to record in 3840x2160 as shown by
await…

JohnyClash
- 630
- 1
- 5
- 10
0
votes
1 answer
Close React Native Expo Camera
Random question, I've created a camera app and on iOS, the green dot (signifying that the camera is in use) stays on even when the camera screen is not in use. Do I need to "close" the camera when it's not in use or anything like that? Thanks!

Clark Taylor
- 323
- 2
- 10
0
votes
1 answer
[React Native][expo-camera] Corrupt base64 saved image on Android
I use React Native and Expo to develop an application on mobile and tablet. I need to be able to take a photo and save it to my local SQLite database. I manage to take my photo and save it, then display it on a page. I use expo-camera.
Everything is…

Camille
- 1
- 4
0
votes
2 answers
Expo-Camera, takePictureAsync undefined (Unhandled promise rejection: TypeError: ref.current.takePictureAsync is not a function)
I'm trying to create react app with expo using expo-camera for taking pictures. I have separately components MeasurementCameraScreen and MeasurementCamera. I'm using useRef() hook to be able to call takePictureAsync() from the…

katjasdf
- 11
- 4
0
votes
1 answer
Expo camera real-time image analysis
I know how to take a picture with my camera using the “expo-camera” module, but I don’t know how to setup a system where it takes a photo about 10 times a second, analyses the colors in the image, to be used for tracking. Expo camera can return…

James G
- 13
- 4
0
votes
1 answer
Return image uri to main react component
I'm adding a camera to an already developed react native project. I want to return the imageUri (set by takePicture in the camera component) to the calling component after the image is confirmed by user input to the image component.
Calling…

exr897
- 5
- 3
0
votes
1 answer
Expo-camera onBarCodeScanned works only once
I'm trying to make an app that basically has to be able to continuously scan Qr codes. It looks something like this (unuseful parts omitted):
const QRScanner = () => {
const [scanned, setScanned] = useState(false);
const [result, setResult]…

Matteo Violetto
- 72
- 9
0
votes
2 answers
Android build failed using eas build after upgrade SDK
Git Issue: https://github.com/expo/eas-cli/issues/1137
I upgraded my expo project to expo 44.0.0 from expo 41.0.0. While building the project using the command eas build --profile development --platform android , it fails with the above errors.…

Sebastian Labadie
- 141
- 1
- 1
- 4
0
votes
2 answers
using expo-face-detector crashed in android
onFacesDetected in expo-camera crashes the android.
Error log:
Fatal Exception: java.lang.IllegalArgumentException: Invalid image data size.
at…

Karthikeyan Ganesan
- 1,901
- 20
- 23
0
votes
2 answers
TypeError: undefined is not an object (evaluating '_this.camera = _ref')
-App dev in React Native-
Hello,
I have a problem with Expo Camera. Here an error is referred when you want to take a picture.
"TypeError: undefined is not an object (evaluating '_this.camera = _ref')" / Scan.js.
If the app is freshly updated with…

LN202
- 3
- 1
- 3