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

Translucent StatusBar causes flicker on render heavy screens #234

Open
vasafix opened this issue Jan 28, 2022 · 3 comments
Open

Translucent StatusBar causes flicker on render heavy screens #234

vasafix opened this issue Jan 28, 2022 · 3 comments
Labels
help wanted Extra attention is needed Platform: Android

Comments

@vasafix
Copy link

vasafix commented Jan 28, 2022

Translucent StatusBar causes useSafeAreaInsets to return incorect values causing flicker

reprepo with bug example:
https://github.com/vasafix/translucent-status-bar-bug

video example:
p2P6

react-native: 0.67.1
react-native-safe-area-context: 3.3.2

@jacobp100 jacobp100 added help wanted Extra attention is needed Platform: Android labels Jan 19, 2023
@HenrikZabel
Copy link

@vasafix did you manage to fix it? If yes, could you share how you did it?

@vasafix
Copy link
Author

vasafix commented Jul 31, 2023

@HenrikZabel We hardcoded the top inset value, as most Android status bars are about 24px tall, this was not the best solution but was sufficient enough for our use-case.

I Just tested this with react-native-safe-area-context version 4.0.1 and it seems, that I am reliably getting top inset value every time, so I guess its time to do this the proper way :)

One major change we did, since I reported this bug, was to use @react-navigation/stack instead of @react-navigation/native-stack, you could give this a try if you are experiencing this bug even on the latest version of react-native-safe-area-context

@sujan-york-ie
Copy link

worked for me if I try to set the translucent in StatusBar using StatusBar.setTranslucent(true);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed Platform: Android
Projects
None yet
Development

No branches or pull requests

4 participants