react-native: ReactNative v0.47.1 FlatList onEndReached problem.
when i update my project form 0.44.1 to 0.47.1, i found that onEndReached Function has been called repeatedly! and never stop call onEndReached.
version | V 0.44.1 | V 0.47.1 |
---|---|---|
![]() |
![]() |
Environment
react-native -v
: 0.47.1node -v
: v6.11.0npm -v
: 3.10.10yarn --version
: v0.27.5
Android and iOS all have this problem.
<FlatList
ref={(flat) => { this._flat = flat; }}
ItemSeparatorComponent={()=>{return <View style={{height: 4}}/>}}
data={this.props.data}
initialNumToRender={4}
keyExtractor={(item, index)=>{ return index}}
onEndReached={this._handleMore}
onEndReachedThreshold={0.5}
onRefresh={this._handleNew}
refreshing={false}
renderItem={this._renderItem}
style={{backgroundColor: '#EFEFF6'}}
/>
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 5
- Comments: 16 (3 by maintainers)
“react-native”: “0.48.2” when wrapped a FlatList with ScrollView,and onEndReached add some data with delay. onEndReached not stop