Questions tagged [expo-camera]

104 questions
0
votes
0 answers

ImageType import unavailable using 'expo-camera'

I am unable to import the enum ImageType from the 'expo-camera' library to specify the imageType in CameraPictureOptions. It seems all enum types are declared in the camera.types.ts module and then exported via the index.ts module for access via…
0
votes
0 answers

Expo-file-system copyAsync and makeDirectoryAsync methods fail after app has been backgrounded and returned to foreground

I'm building a react native expo app that uses expo camera to take short videos and uses expo-av to replay them for the user. When I first open the app it works fine, but when I background the app and then reopen it (bring it back to the foreground)…
0
votes
0 answers

How to capture a specific portion of the screen when capturing an image in expo react native

Have you seen apps like Math Papa, or PhotoMath, where the camera captures a particular portion in view on the screen? I want to implement the same but in my case the ScanningArea View. I have tried different methods which hasn't been really…
0
votes
1 answer

How do you get the video duration while recording

How do you get the amount of time a video has been being recorded while it is being recorded. I have looked on google for a solution and have found nothing.
0
votes
0 answers

How to capture a QR code image along side its scanned data

I know that the BarCodeScanningResult gives data as the scanned data inside the QR code. But what if I want the bar code itself, i.e, the image of the bar code along side its data. Is their a way in react-native expo to capture the QR code itself…
0
votes
0 answers

EXPO android build crash on camera launch

App crashes only with (internal) android build (not with expo, not with standalone internal ios build) App.json (extract) ... "android": { "googleServicesFile": "./google-services.json", "adaptiveIcon": { "foregroundImage":…
0
votes
0 answers

How to fix missing video and black video playback in expo-camera recording - React Native

after recording a 7-second video, I save it and then store it on my server. however, when playing the video back it has no video, only audio. video link: https://storage.googleapis.com/clipdrop-prod/tfZJe6V5ImfAYD_k9GMnKK6JD.mp4?avoidCache=1 here is…
Dean Van Greunen
  • 5,060
  • 2
  • 14
  • 28
0
votes
0 answers

React native web expo camera not working in some android devices

Expo camera in our web app is not working in some of the android devices. For example it is working in pixel 6 and in pixel 4a and Samsung a50 it is not working. I am getting this error in console. useWebCameraStream.ts:84 Error requesting User…
test
  • 1
0
votes
0 answers

Displaying a Image from the Camera

I am relatively new to React-Native and mobile app development. I am trying to create a clone of Instagram. And in the post screen what I do is I have a button Camera and once I click on it, that should take me to CameraView screen. And in the…
Pranav J
  • 82
  • 6
0
votes
1 answer

How to avoid expo-camera to be reconfigured on every render using react-navigation

I am using react-navigation to navigate through screens. In the main screen I use expo-camera and the onFacesDetected callback within the Camera component as follows: import { Camera } from 'expo-camera'; import { useState} from 'react'; const…
EnzoBH
  • 1
  • 1
0
votes
0 answers

Expo app completely unresponsive when using Expo Camera and navigating away while recording

Using expo-camera and have set up video recording. App also uses react-navigation. When recording (i.e. calling camera.recordAsync()), if I navigate away, the app becomes completely unresponsive. Expo Go's interface also is completely unresponsive…
Charlie
  • 21
  • 3
0
votes
0 answers

React Native: Camera from "expo-camera" stop running when face is not ever detected

I am newer for using react-native, and wanna try to create a camera with filter. I'm blocked in step to recognize face. Have success to draw rectangle when face detected, but the problem is once it goes out of detection. The camera stop running as…
0
votes
0 answers

expo camera eas build crashes when started video recording

I have been working on a react-native camera app using expo camera. According to me, on launching the camera app in expo go, video recording automatically start using onCameraReady method in expo camera but when building eas builds the app…
computer
  • 23
  • 3
0
votes
0 answers

Expo-Camera for local simulator development is not supported, how to work around this?

expo-camera is not supported by any of the simulators. Therefore, when using this component in development & on the simulator, it results in an error and data is not stored as it would on the actual device. Possible Unhandled Promise Rejection. …
Phil Lucks
  • 2,704
  • 6
  • 31
  • 57
0
votes
0 answers

Where i can set defaultRecordSettings in Expo Camera?

I have a problem with recording flickers (it works on IPhone < 12) so I tried to find solutions but unsuccessfully(. All i could understand that there are some default recording settings and somehow u can change it. Please if u know smth or u had…
NofiK
  • 1
  • 1