Skip to content

Conversation

NormanWangEndeavor
Copy link
Contributor

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

@gosha212 gosha212 changed the title fix: Android top bar buttons disappeared when lock screen then unlock screen fix(Android): top bar buttons disappeared when lock screen then unlock screen Jul 21, 2025
@gosha212 gosha212 merged commit c6a033c into wix:master Jul 21, 2025
5 checks passed
gosha212 added a commit that referenced this pull request Jul 30, 2025
gosha212 added a commit that referenced this pull request Jul 30, 2025
…8053) (#8076)

Co-authored-by: NormanWangEndeavor <145947285+NormanWangEndeavor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants