Skip to content

[Android][BottomTabs] - Content is gone when pressing fast a tab in a nested screen + native crash #4314

Description

@ferrannp

Description

When you have bottom native tabs on Android and nested screens, if you press the tab fast to go back to the first screen, then the content disappears. Before react-native-screens 4.26.0, this was crashing the app, now the content just goes away.

Video:

contentIsGone.mov

Edit: If you press fast several times, it still crashes:

Image

Steps to reproduce

  • Native bottom tabs
  • Nested screen inside the tab
  • Go to that screen
  • Press the tab fast

Snack or a link to a repository

https://github.com/ferrannp/react-native-screens-navigation-v8-repo

Screens version

4.26.0

React Native version

0.86.0

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

Pixel 8

Acknowledgements

Yes

Metadata

Metadata

Assignees

Labels

platform:androidIssue related to Android part of the libraryrepro-providedA reproduction with a snack or repo is provided

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions