react-native-largelist icon indicating copy to clipboard operation
react-native-largelist copied to clipboard

滑动largelist,又概率无法点击内部内容

Open nikohpng opened this issue 3 years ago • 5 comments

使用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}}/>

nikohpng avatar Nov 15 '21 09:11 nikohpng

hi~问题解决了吗?

GuJinHua930826 avatar Nov 30 '21 07:11 GuJinHua930826

hi~问题解决了吗?

没搞定,换回FlatList,目前还能顶一下。

nikohpng avatar Nov 30 '21 08:11 nikohpng

怎么解决,发现按住跟手滑动停住以后,内容就无法点击,然后再稍微拨一下滑动就又可以点击了

lwl666666 avatar Feb 28 '22 06:02 lwl666666

IOS会有这个问题,安卓没有

lwl666666 avatar Feb 28 '22 06:02 lwl666666

解决方案:回退到 3.0.1-rc.5 https://github.com/bolan9999/react-native-spring-scrollview/issues/79

Misaka-0x447f avatar Feb 28 '22 07:02 Misaka-0x447f