Animated layout doesn't work with FlatList #2738
Unanswered
Pietro-Putelli
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey, Try to use it - #2674 <Animated.FlatList // use Animated.FlatList instead of FlatList
itemLayoutAnimation={Layout.springify()} // this animation will be apply as layout property for every list item
data={itemsData} // as always
renderItem={renderItem} // as always
/> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Reanimated version: 2.3.0
When I try to use FlatList instead of ScrollView, as shown in the tutorial below, the Layout.springify() doesn't work.
https://docs.swmansion.com/react-native-reanimated/docs/tutorials/LayoutAnimations/layoutAnimations
Someone suggests to apply this path: https://patch-diff.githubusercontent.com/raw/piaskowyk/react-native/pull/1.patch.
How can I apply the patch?
Is there an alternative solution?
Beta Was this translation helpful? Give feedback.
All reactions