bolan9999 / react-native-largelist

The best large list component for React Native.
https://bolan9999.github.io/react-native-largelist/
MIT License
2.32k stars 261 forks source link

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

Closed nikohpng closed 1 year ago

nikohpng commented 2 years ago

使用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}}/>
GuJinHua930826 commented 2 years ago

hi~问题解决了吗?

nikohpng commented 2 years ago

hi~问题解决了吗?

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

lwl666666 commented 2 years ago

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

lwl666666 commented 2 years ago

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

Misaka-0x447f commented 2 years ago

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