Skip to content

[android][newArchEnabled] Error navigating back when re-entering the app after opening another app #3234

@mgvictor7

Description

@mgvictor7

Description

If you open a picker to select a file using a library such as @react-native-documents/picker, if you exit the app and re-enter, when you navigate back, the styles of the screen header are lost, as well as the wallpaper.

I've tested with several versions of react-native: 0.79.6, 0.80.2, and 0.81.1.
I've tested with @react-navigation/native versions 7.x and 6.x.
It has been tested on a physical device with Android 16 and on emulators with Android 15 and Android 16.

IMPORTANT -> This error occurs if newArchEnabled=true

Steps to reproduce

Clone this repository https://github.com/mgvictor7/AwesomeProject_79_6.git

  1. Navigate to last screen and press to "Open document picker"
  2. Go back until you exit the app
  3. Access the app again and navigate back and forth.
  4. When you go back, the screen’s content disappears and the header style reverts to default.
491537521-27f74cf2-2640-4e8c-a3e6-4e3324d18449.mp4

Snack or a link to a repository

https://github.com/mgvictor7/AwesomeProject_79_6.git

Screens version

4.16.0

React Native version

0.79.6

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

None

Device

Android emulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

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