Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maciekBudzinski opened this issue Nov 8, 2024 · 0 comments · May be fixed by #4550
Assignees
Labels

Comments

@maciekBudzinski
Copy link

Current behaviour

[Android ONLY] The application crashes when unmounting MaterialBottomTabNavigator nested in the native stack navigator. I've created this issue here as it only happens when createMaterialBottomTabNavigator is used. It works ok with BottomTabNavigation from @react-navigation/bottom-tabs.

Expected behaviour

Application should not crash.

How to reproduce?

Repro demo: https://github.com/maciekBudzinski/rnp-material-bottom-tabs-repro-issue

Preview

paper_repro.webm

What have you tried so far?

  1. I've tried to different versions of react-native-screens as suggested here: Android - "cannot remove child at index X" error on new architecture software-mansion/react-native-screens#2339.
  2. When I render MaterialBottomTabNavigator without native-stack that wraps it, everything works ok.

Your Environment

software version
ios n/a
android API 33 Emulator
react-native 0.76.1
react-native-paper 5.12.5
node v21.7.3
npm or yarn 1.22.22
expo sdk n/a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant