Does not play well with Expo Camera
See original GitHub issueI’m using the Camera module from Expo SDK31 with react-navigation v3.x
I have a navigation screen that opens on top of the camera view screen (stacknav). When going back to the camera screen, the camera view does not work anymore and is black.
Not sure what is happening exactly, but it looks like the camera view does not reinitialize properly when the screen gets focused again. I don’t know if this is an Expo problem or this lib.
These workaround works:
- Remove
useScreens()
call - Unmount the camera view when the screen is unfocused and remount on focus (using withNavigationFocus
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:8 (3 by maintainers)
Top Results From Across the Web
expo-camera work well on Expo Client, but it make crash app ...
I saw my app crashing twice (today and yesterday). both when using the camera. Don't know if its related to this issue but...
Read more >Expo Camera on Android doesn't work well as on Web
I'm using Camera-Expo. When I test it and take a photo on Web, it is saved as 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUg.
Read more >How to Create a Camera App with Expo and React Native
If you are not familiar with expo, it's a client that helps you build React Native apps with less build complexity.
Read more >Make a Camera App using React Native Expo (Android & IOS)
Not only social media app but all e-commerce as well as… ... expo-camera has built-in functionality that helps you with click photos using...
Read more >Camera - Expo Documentation
Camera. expo-camera provides a React component that renders a preview for the device's front or back camera. The camera's parameters like zoom, auto...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I don’t know sorry 😉 we can close it and if I see it again I may reopen
Does this issue still exist or can I close it?