-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Black screen when swiping back with react navigation #1966
Comments
Hm, I think the Preview View is being nuked by Android OS and I don't have enough time to properly stop the Capture Session in there? |
Same here. Got a workaround though. Adding this. if (Platform.OS === 'android' && !isFocused) {
return <View />;
} |
@irfancini's answer prompted me to try again with I've opened an issue for For now, I replaced the Not sure if there is an actual bug as well in vision camera, @mrousavy knows better |
Idk yea I think this will be fixed by #1996 once I finish that, but for now I got other priorities. Might be because the PreviewView's |
I just fixed this in #2049, and released it to npm (v3.6.0) 🎉 If you appreciate my work and dedication to fix your issues and make VisionCamera better, please 💖 consider sponsoring me on GitHub 💖 to say thanks. Thanks! |
I still have this issue after upgrading to 3.6.4 |
Same issue in 3.6.8 but only on Android, iOS works fine |
same problem |
Happens the same with version 3.6.17 on Android - managed to find the issue:
|
Thanks, this resolves the issue partially! |
This is still happening when unmounting the component on Android. No navigation library involved. Just plain mounting and unmounting based on state. I've created a demo project here: https://github.com/MSchmidt/CameraTester |
Thanks for the sponsorship @MSchmidt, I'll take a look! |
Same issue in 3.9.2 but only on Android, iOS works fine |
Can you check out if VisionCamera V4 fixed this issue? |
@mrousavy 3.8.2 still, 4.5.0 fixed |
What's happening?
The Camera goes into a black screen when swiping to go back to a previous screen.
Here is a video
Screen_Recording_20231010_155326_nativewind-tw-variants.mp4
Reproduceable Code
And in
TabScreen
Camera Device
Device
Samsung S22 Ultra
VisionCamera Version
3.3.1
Can you reproduce this issue in the VisionCamera Example app?
Yes, I can reproduce the same issue in the Example app here
Additional information
The text was updated successfully, but these errors were encountered: