question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does not play well with Expo Camera

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
slorbercommented, May 29, 2020

I don’t know sorry 😉 we can close it and if I see it again I may reopen

0reactions
WoLewickicommented, May 29, 2020

Does this issue still exist or can I close it?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found