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
I'm using the FlashList component and in the renderItem it's rendering an Animated.View (from react-native-reanimated), which has a layout prop: LinearTransition.springify().
Unfortunately, no layout animation is happening.
Expected behavior
The layout transition/animation should work as expected.
To Reproduce
<FlashListdata={data}renderItem={({ item })=>(<Animated.Viewlayout={LinearTransition.springify()}>{/* children here */}</Animated.View)}estimatedItemSize={100}keyExtractor={(message)=>message.id}/>
Platform:
iOS
Android
Environment
v1.6.4
The text was updated successfully, but these errors were encountered:
It appears you are using LinearTransition in your code. According to the documentation:
For layout animations, similarly to the React Native API, you need to call prepareLayoutAnimationRender() before removing or inserting an element that you want to animate. Note that we currently support only entering and exiting animations. Layout transitions are not supported as of now.
Current behavior
I'm using the
FlashList
component and in therenderItem
it's rendering anAnimated.View
(fromreact-native-reanimated
), which has a layout prop:LinearTransition.springify()
.Unfortunately, no layout animation is happening.
Expected behavior
The layout transition/animation should work as expected.
To Reproduce
Platform:
Environment
v1.6.4
The text was updated successfully, but these errors were encountered: