Skip to content

Conversation

NormanWangEndeavor
Copy link
Contributor

@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
Copy link

stale bot commented Jan 31, 2025

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the 🏚 stale label Jan 31, 2025
Copy link

stale bot commented Feb 24, 2025

The issue has been closed for inactivity.

@stale stale bot closed this Feb 24, 2025
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.

1 participant