-
-
Notifications
You must be signed in to change notification settings - Fork 537
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
Android - "cannot remove child at index X" error on new architecture #2339
Comments
Hey! 👋 The issue doesn't seem to contain a minimal reproduction. Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem? |
There is a reproduction example in the issue: https://github.com/72days/TestNavFlatListIssues |
FYI this is also an issue with |
Temporarily add this to FlatList to fix the issue: <FlatList
data={images}
numColumns={3}
contentContainerStyle={[{paddingHorizontal: 10}, containerStyle]}
renderItem={renderItem}
removeClippedSubviews={false} // <- Add This
/> Got this workaround from: #2282 |
Still happens in latest beta version (4.0.0-beta.9) |
@WKampel Can you attach a reproduction? |
Facing this issue with RN 0.75.4 and react-native-screens - 3.34.0 |
facing this issue with "react-native-screens": "^3.35.0", and "react-native": "0.76.0", |
The issue should be gone in |
Had the issue with |
Facing this issue with react native 0.76.1, react native screens 3.35.0 |
Same, seeing this issue in RN 0.76.1 and RN Screens 3.35.0 |
Same issue in RN 0.76.1 and RNScreens 3.35.0. I also tried updating RNScreens to 4.1.0 and had the same result. |
Related issue: #2491 |
I just wanted to confirm that issue is resolved in v4.2.0. |
Confirmed that this is fixed for me with RN 0.76.2 and RN Screens 4.2.0. Thank you for your help! |
cannot remove child at index 7 from parent ViewGroup [416], only 8 childern in parent. warning: childCount may be Incorrect! |
same issue |
I was also facing this issue, not for flatlist but in some other part of the app. was using v4.0.0, upgraded to 4.2.0 and it got fixed! |
"react-native-screens": "3.34.0", to "3.35.0", working for me |
I am still facing this issue with new arch enabled. Its happening randomly after spending serval minutes. "react-native-screens": "^4.4.0", |
Description
When navigating back from a stack screen which contains a FlatList, the app throws a soft error:
IssueWithFlatListFabric.mov
Steps to reproduce
Snack or a link to a repository
https://github.com/72days/TestNavFlatListIssues
Screens version
3.34.0
React Native version
0.75.2
Platforms
Android
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
Samsung S9 and Pixel 1
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: