You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(Android): incorrect childCount in removeViewAt when using flatlist on fabric (#2307)
This PR intents to fix the crash when navigating back from a screen with
FlatList on the new architecture. The crash was caused by miscalculated
`childCount` of the list.
Earlier on I found out that setting the
[removeClippedSubviews](https://reactnative.dev/docs/flatlist#removeclippedsubviews)
option to false (defaults to true on Android) in the FlatList fixes the
problem.
This PR is rather a quick fix with an extra condition, that adds simple
views in place of the miscalculated ones in `startTransitionRecursive`
function if there's a FlatList with `removeClippedSubviews` option set.
Fixes#2282.
- added `Test2282.tsx` repro
- added extra condition in `startTransitionRecursive` function
<!--
Here you can add screenshots / GIFs documenting your change.
You can add before / after section if you're changing some behavior.
-->
- added `Test2282.tsx` repro
- [x] Ensured that CI passes
(cherry picked from commit c47ad84)
0 commit comments