【发布时间】:2020-02-10 11:55:41
【问题描述】:
我有水平设置的平面列表 来自数组的 11 项数据,固定不变
我想要的是当用户在滚动时到达平面列表的末尾时,数据应该保持不变,但第一项应该 出现在最后,然后以此类推
这是我迄今为止尝试过的
<FlatList
{...this.props}
ref={ref => {
this.infListRef = ref;
}}
data={this.props.data}
onScrollEndDrag={this.handleScroll}
initialScrollIndex={0}
scrollEventThrottle={16}
renderItem={this.props.renderItem}
onScroll={({nativeEvent}) => this.checkScroll(nativeEvent)}
horizontal
showsHorizontalScrollIndicator={false}
keyExtractor={item => item.id}
/>
我们将不胜感激。
【问题讨论】:
标签: react-native react-native-flatlist