Skip to content

ReactNative v0.75.4 with new architecture android app is crashing  #12183

@sankar-gp

Description

@sankar-gp

Current behavior

ReactNative v0.75.4 with new architecture android app is crashing when I click back. But it's working in iOS and when I disable new arch it's working fine. Issue is only with newArchEnabled=true

Error Log:
Cannot remove child at index 1 from parent ViewGroup[1332], only 2 children in parent. Warning: childCount may be incorrect! null

Expected behavior

App should not crash when newArchEnabled=true

Reproduction

norepo

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Packages

  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-top-tabs
  • @react-navigation/stack
  • @react-navigation/native-stack
  • react-native-tab-view

Environment

  • [] I've removed the packages that I don't use
package version
@react-navigation/native 6.1.18
@react-navigation/bottom-tabs 6.6.1
@react-navigation/material-top-tabs 6.6.14
@react-navigation/native-stack 6.11.0
react-native-screens 3.34.0
react-native-gesture-handler 2.20.0
react-native-tab-view 3.5.2
react-native-pager-view 6.4.1
react-native 0.75.4
node >=18
npm or yarn yarn@3.6.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    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