Skip to content

Cannot remove child at index X from parent ViewGroup X, only X children in parent. Warning: childCount may be incorrect! #2491

@maciekBudzinski

Description

@maciekBudzinski

Description

[Android Only] Application crashes when unmounting a screen with removeClippedSubviews set to true.

Steps to reproduce

Run application from reproduction repository (rnscreens branch).
Press login, then logout, see the application crash:

rnscreens_demo.webm

Snack or a link to a repository

https://github.com/maciekBudzinski/rnp-material-bottom-tabs-repro-issue/tree/rnscreens

Screens version

4.0.0

React Native version

0.76.1

Platforms

Android

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Android emulator

Device model

No response

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