Questions tagged [expo-camera]
104 questions
1
vote
0 answers
Need to get size of the photo that will be done before it's done. EXPO
I`m using expo-camera for doing selfie. When i do photo - i got an object with photo width, height and photo uri. Width and height always the same and specific to device.
But for some reasons ( need to show user warnings) i need to know size of the…

MadaShindeInai
- 432
- 4
- 16
1
vote
1 answer
Unhandled promise rejection: TypeError: null is not an object (evaluating camera.pictureSize)
I am creating a react-native app to use the expo-camera module.
So I declared a camera variable as
let camera: any = null;
I am passing a reference to this from the return as:

devabhishekpal
- 95
- 2
- 14
1
vote
2 answers
Multiple files for cameraview while build app for android react native
I am using react-native-camera and expo-camera in my project. Along with this I am using few firebase features as well.
App is working fine for iOS but not for Android.
After removing firebase classes, I am able to run the app properly in simulator.…

Baby Groot
- 4,637
- 39
- 52
- 71
0
votes
0 answers
I'm stuck trying to upload a picture I took with expo camera into firebase storage
could you please help me uploading the pictures I take using expo camera, below the code I'm using right now, I see the image in firebase storage with more that 5mb of size but it's unreadable, below the code I'm using :
const takePic = async ()…
0
votes
1 answer
Expo-camera disorted preview
Using Expo-camera, I simply can't manage to display a small preview image (half the screen width in size) on the screen. The image always gets distorted. Here is my code
I have tried several online answers to similar problems but with little…

ntx2
- 31
- 1
- 5
0
votes
0 answers
Expo camera - takePictureAsync() very slow on Android
Hello I am trying to implement a pictures app where users can upload their pictures or capture one directly from the app itself.
On iOS everything works perfectly but on Android the function takePictureAsync from expo-camera takes a huge time to…

blouuuu
- 454
- 1
- 4
- 16
0
votes
1 answer
How to set the quality of the picture when using the expo camera?
I'm using Expo (React Native) and Express.js (Node.js) and I'm trying to develop an app that can take pictures and store them on the server.
So far, I have completed all this, but I want to make sure the server isn't overrun from really high quality…

Carsdan Dvorachek
- 35
- 6
0
votes
0 answers
Expo-camera doesn't detects faces with eas builds, works well on expo go
Expo camera's property onFaceDetected doesn't gets triggered while testing with eas builds like expo-dev-client or apk files using EAS cli. It works fine on Expo Go. But when using eas builds, it results in no response from onFaceDetected property.…

Mudassir Rafiq
- 41
- 5
0
votes
0 answers
How can I apply the flash to pictures taken with expo-camera in react native?
I'm using:
"expo": "~48.0.4"
"expo-camera": "~13.2.1"
"react-native": "0.71.8"
... to build an Expo React Native mobile application. I'm using an EAS dev build to test on my physical iPhone 14.
My problem is that no matter what flashMode I use, at…

Michael Coughlin
- 1
- 2
0
votes
0 answers
How to zoom camera on pinch on react native?
I'm building a RN app using Expo, which uses expo-camera's Camera component. I'm trying to implement zoom on pinch functionality, which basically is computing a number between 0 (no zoom) and 1 (max zoom) based on the gesture.
MRE:…

Picoral
- 199
- 1
- 2
- 13
0
votes
0 answers
Expo-Camera is crashing when i build the application, but it runs perfectly while debugging
I am using expo in react native cli. The versions of library are as below :
"expo": "^48.0.0",
"expo-camera": "^13.2.1",
"expo-face-detector": "^12.1.1",
"expo-gl": "^12.0.1",
"expo-modules-core": "^1.2.7",
"npm": "^8.19.3",
"react":…

Munish Vira
- 19
- 3
0
votes
0 answers
[Error: Call to function 'ExponentCamera.takePicture' has been rejected. Caused by: java.lang.RuntimeException: autoFocus failed]
#Find.jsx
import {
View,
Text,
FlatList,
TouchableOpacity,
StyleSheet,
} from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import Header from "./Header";
import CaptureObject from "./CaptureObject";
import…

Sayan Saha
- 61
- 1
- 1
- 4
0
votes
0 answers
How do I record 10 second videos in react native?
I have a page of an expo-camera view and a record button, The button activates the camera or disables it if its running, I want to record videos with a max length of 10 seconds, then start recording again after the video is saved, and keep doing…

0x43ow
- 1
- 1
0
votes
1 answer
`error: argument 'x' passed to 'expanddims' must be a tensor or tensorlike, but got 'tensor' `
i am working on the project scanning image app with tensorflow. i have issue on size of image on tensorflow . i am using expo and expo-camera also for model training i am using teachable machine.
In the coding path every thing is fine but this line…

BIKI KUMAR SAH
- 1
- 1
0
votes
0 answers
Images sent from React Native has size zero
I've written the code below to send an image from react native expo through a post request to my backend. I have tested the backend with postman and confirmed it's working. However, when I make a post request to send an image, the image is received…

shaibu sunnuma
- 11
- 2