Skip to content
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

Freezing with react navigation bottom-tabs #3

Closed
tedi opened this issue Oct 29, 2021 · 4 comments
Closed

Freezing with react navigation bottom-tabs #3

tedi opened this issue Oct 29, 2021 · 4 comments

Comments

@tedi
Copy link

tedi commented Oct 29, 2021

Thank you for your work with this library, very excited to put it in production.

While testing things out almost everything seemed to work smoothly, with the exception of react navigation bottom-tabs. We noticed this specifically on screens with media playing. We have a state update that fires on navigation blur. The media then adjusts play state when that happens. This works as expected when navigating within the same tab.

However when switching tabs, we ran into some issues. The state does not update on time, causing the media to be frozen in a playing state when navigating to a different tab. The blur event seems to fire appropriately, so my guess is that the previous tab is freezing almost immediately, not allowing side effects.

Currently running the latest version of all react-navigation libraries and RN 0.64.1

Would love any feedback on dealing with this scenario.

Thanks,
Tedi

@WoLewicki
Copy link
Member

@tedi could you provide a repo or a code snippet with minimal configuration needed to reproduce the issue?

@tedi
Copy link
Author

tedi commented Nov 3, 2021

@WoLewicki will do in the next few days. Thanks.

@kacperkapusciak
Copy link
Member

@tedi 🏓

@kacperkapusciak
Copy link
Member

I'm closing this issue because it looks like this problem was explained in detail in software-mansion/react-native-screens#1198,

fixed in software-mansion/react-native-screens#1220,

and released in react-native-screens v3.10.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants