react-native-largelist
react-native-largelist copied to clipboard
滑动largelist,又概率无法点击内部内容
使用largelist实现类似sectionlist的功能(实现了两列),在使用的过程中,滑动后其中的有些内容无法点击,有些能够点击。上拉或者下拉后恢复正常。
环境: ios模拟器 react-native-largelist: 3.1.0-rc.2 react-native: 0.61.5
代码
<LargeList
ref={(ref) => this.largeList = ref}
data={this.videoTypeVm.allVideoContent}
renderIndexPath={(section) => this.renderVideoItem(section, this.videoTypeVm.allVideoContent.length)}
renderEmpty={() => <PictureTypeEmptyComponent></PictureTypeEmptyComponent>}
refreshHeader={VideoLoadComponent}
onRefresh={() => {
this.startTopLoader();
}}
heightForSection={() => 35}
heightForIndexPath={(section) => section.row % 2 === 0 ? 200 : 0 }
onLoading={() => {
if (this.videoTypeVm.videoItems.length > 0) {
this.startBottomLoader();
}
}}
headerStickyEnabled={false}
allLoaded={ this.videoTypeVm.total === this.videoTypeVm.videoItems.length}
loadingFooter={VideoLoadingFooter}
renderSection={(section) => this.renderSectionHeader(section)}
renderFooter={() => this.renderBottomLoad()}
style={{ backgroundColor: "#fff", flex: 1}}/>
hi~问题解决了吗?
hi~问题解决了吗?
没搞定,换回FlatList,目前还能顶一下。
怎么解决,发现按住跟手滑动停住以后,内容就无法点击,然后再稍微拨一下滑动就又可以点击了
IOS会有这个问题,安卓没有
解决方案:回退到 3.0.1-rc.5 https://github.com/bolan9999/react-native-spring-scrollview/issues/79