Open NormanWangEndeavor opened 1 month ago
Android top bar buttons disappear After Locking the screen then unlock the screen.
The top bar buttons should keep showing.
I have tested this issue on the latest react-native-navigation release and it still reproduces.
The onGlobalLayout is not triggered when the lock screen then unlocks the screen.
onGlobalLayout
React Native Navigation version: - Has Fabric (React Native's new rendering system) enabled: no Device model: Pixel 6 Android version: 14
Buttons Screen
Push
Buttons
Two
Before:
https://github.com/user-attachments/assets/6ab1c91f-77b5-4f6a-b9ae-a2d684f32959
After:
https://github.com/user-attachments/assets/fb276a48-2132-4f05-8994-1eb1f6d8e0a8
What happened?
Android top bar buttons disappear After Locking the screen then unlock the screen.
What was the expected behavior?
The top bar buttons should keep showing.
Was it tested on the latest react-native-navigation?
I have tested this issue on the latest react-native-navigation release and it still reproduces.
Root Cause
The
onGlobalLayout
is not triggered when the lock screen then unlocks the screen.In what environment did this happen?
React Native Navigation version: - Has Fabric (React Native's new rendering system) enabled: no Device model: Pixel 6 Android version: 14
Reproduce the Issue:
Buttons Screen
buttonPush
buttonButtons Screen
page.Buttons
and the buttonTwo
disappearedScreenshot
Before:
https://github.com/user-attachments/assets/6ab1c91f-77b5-4f6a-b9ae-a2d684f32959
After:
https://github.com/user-attachments/assets/fb276a48-2132-4f05-8994-1eb1f6d8e0a8