Skip to content

Screen flickering when go back (using newArchitecture: true and only on Android) #2605

@code-504

Description

@code-504

Description

After successfully pushing a new screen with router.push(), pressing the back button causes the screen to flash. This issue only occurs when the new architecture is enabled and on Android.

2024-12-12.23-14-40.mp4

Steps to reproduce

  1. Download the repository.
  2. Run the command npm install.
  3. Start the project using npm start -- -c.
  4. Open Expo Go on an emulator or a real device, and scan the QR code.
  5. Press the "HOLA" button to navigate to the next screen.
  6. Press the Android back button or the header back button.

It will display a flash when navigating back to the previous screen. I used bright colors to demonstrate the color change.

Snack or a link to a repository

https://github.com/code-504/expo-router-flashing-screen

Screens version

4.4.0

React Native version

0.76.5

Platforms

Android

JavaScript runtime

Hermes

Workflow

Expo managed workflow

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

Nexus 5 (Android 7)

It also occurs in physical devices: Pixel 7a (Android 15)

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions