React-native-animatable: animation with different delay not working on FlatList

Created on 26 Apr 2018  路  3Comments  路  Source: oblador/react-native-animatable

I want to use react-native-animatable in FlatList that each item in FlatList has different delay in sequence but all items have the same delay.

keyExtractor={(item, index) => item.id}
data={this.props.items}
ListFooterComponent={this.renderFooter}
onEndReached={this.handleLoadMore}
onEndReachedThreshold={0.5}
renderItem={({item, index}) => (
delay={(index+1)*1000}
duration={3000}
animation="slideInLeft">



)}
/>

Most helpful comment

Yes, same issue here. How to fix it?

All 3 comments

Yup. same as me, the animation come out in batches. as a work around, what i did is to put a limit to the index to less than 10 (or any number you think is sufficient). then the animation come out correctly. but not as clean as staggered animation from rn.

Yes, same issue here. How to fix it?

Same here. But i only see this problem in release mode, development is working fine. That's very weird.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hafiz703 picture hafiz703  路  5Comments

pcfutures picture pcfutures  路  4Comments

ssomnoremac picture ssomnoremac  路  5Comments

quangtruong16994 picture quangtruong16994  路  5Comments

ghost picture ghost  路  3Comments