Skip to content

fix(Android): top bar buttons disappeared when lock screen then unlock screen#8053

Merged
gosha212 merged 4 commits intowix:masterfrom
NormanWangEndeavor:fix/android-top-bar-buttons-disappear
Jul 21, 2025
Merged

fix(Android): top bar buttons disappeared when lock screen then unlock screen#8053
gosha212 merged 4 commits intowix:masterfrom
NormanWangEndeavor:fix/android-top-bar-buttons-disappear

Conversation

@NormanWangEndeavor
Copy link
Copy Markdown
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>
markdevocht added a commit that referenced this pull request Apr 13, 2026
* Apply color animations on tab-switching (Android-only) (#7975)

* Update package.json version to 7.44.0 [buildkite skip]

* Fix npm registry and recreate package-lock.json (#7987)

* fix(sdk35): Apply inset over bottom-tabs (#7991)

* Update package.json version to 7.45.0 [buildkite skip]

* Revert "Feat/rn76 oldarch (#7967)" (#8003)

* Update package.json version to 7.46.0 [buildkite skip]

* Mocked side-menus - support (#8017)

* Update package.json version to 7.47.0 [buildkite skip]

* Support drawer menus opening as overlay instead of pushing content in ios (#7986)

* Update package.json version to 7.48.0 [buildkite skip]

* Patch-fix some recent side-menu overlay mode changes (#8039)

* Introduce options to make a floating bottom-tabs (Android) (#8064)

* Update package.json version to 7.49.0 [buildkite skip]

* fix: top bar buttons disappeared when lock screen then unlock sreen (#8053) (#8076)

Co-authored-by: NormanWangEndeavor <145947285+NormanWangEndeavor@users.noreply.github.com>

* Update package.json version to 7.50.0 [buildkite skip]

* Back-compat edge2edge for standard layout, incl. drawBehind

* merge master into me

* first config to get it running

* bottom bar edge2edge complete?

* statusbar e2e

* cleanup

* backward compatiblility

* final touches

* Fix yarn registry to use public npmjs.org instead of internal wixpress

Made-with: Cursor

* #8080

* conflict fixes

* snapshot updates

* more updates

* update e2e android

* snapsot update

* documentation

* added

* codex fixes

* enableEdgeToEdge() is now the decision hook — override it to control when edge-to-edge activates
activateEdgeToEdge() is the action method — it does both EdgeToEdge.enable(this) and SystemUiUtils.activateEdgeToEdge(), so it's impossible to enable Android edge-to-edge without also setting RNN's internal flag
The docs now show activateEdgeToEdge() in the override example instead of EdgeToEdge.enable(this)

---------

Co-authored-by: d4vidi <amit.d4vidi@gmail.com>
Co-authored-by: mobileoss <mobileoss@wix.com>
Co-authored-by: Liat Netach <60575762+liatnetach@users.noreply.github.com>
Co-authored-by: Georgy Steshin <gosha212@gmail.com>
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