Open short-dsb opened 4 days ago
Guten Tag, Hans here.
[!NOTE] New features, bugfixes, updates and other improvements are all handled mostly by
@mrousavy
in his free time. To support@mrousavy
, please consider π sponsoring him on GitHub π. Sponsored issues will be prioritized.
@short-dsb try downgrading to the below version, it worked for me
"react-native-vision-camera": "4.4.0"
@short-dsb try downgrading to the below version, it worked for me
"react-native-vision-camera": "4.4.0"
Version 4.4.0 has issues with orientations in older iOS so it's not an option.
I'm using this as the workaround, wait for the crash to fix in the next version
import DeviceInfo from 'react-native-device-info'
const device = DeviceInfo.isEmulator() ? null : useCameraDevice("back");
What's happening?
Trying to invoke
useCameraDevice
on an iOS simulator in 4.4.1 results in a JS exception:This issue was not present in 4.4.0.
Reproduceable Code
Relevant log output
Camera Device
Device
iPhone 15 simulator (iOS 17.2)
VisionCamera Version
4.4.1
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (β οΈ your issue might get ignored & closed if you don't try this)
Additional information