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

fix: Android top bar buttons disappeared when lock screen then unlock screen #7918

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NormanWangEndeavor
Copy link

@NormanWangEndeavor NormanWangEndeavor commented Sep 29, 2024

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:

  1. On Android, open the Playground app, select Options Tab
  2. Click the Buttons Screen button
  3. Click the Push button
  4. Lock the screen then wake up the phone and unlock the screen
  5. Back to the Buttons Screen page.
  6. The title Buttons and the button Two disappeared

Screenshot

Before:

Screen_recording_20240930_100457.mp4

After:

Screen_recording_20240930_100723.mp4

@NormanWangEndeavor NormanWangEndeavor changed the title fix: top bar buttons disappeared when lock screen then unlock sreen fix: top bar buttons disappeared when lock screen then unlock screen Sep 30, 2024
@NormanWangEndeavor NormanWangEndeavor marked this pull request as ready for review September 30, 2024 02:15
@NormanWangEndeavor NormanWangEndeavor changed the title fix: top bar buttons disappeared when lock screen then unlock screen fix: Android top bar buttons disappeared when lock screen then unlock screen Sep 30, 2024
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

Successfully merging this pull request may close these issues.

1 participant