【发布时间】:2021-10-26 15:25:22
【问题描述】:
我正在使用
import {CollapsibleHeaderTabView} from "react-native-tab-view-collapsible-header";
import {HScrollView} from "react-native-head-tab-view";
我将一个 FlastList 推入 HScrollView
<HScrollView
index={0}
style={{backgroundColor: "#FFFFFF"}}
// onScroll={(event)=>console.log("hitme2")}
// onScroll={()=>console.log("hitme")}
>
<FlatList
data={DATA}
renderItem={renderItem}
keyExtractor={item => item.id}
onEndReached={onEndReached}
/>
</>
flashlist 的事件 onEndReached 将不起作用,而不是滚动关闭 Hscrollview 起作用。
我想让 Hscollview 的 catch 事件自定义相同的 onEndReached。
请帮帮我!
反应:“16.13.1”
React Native:“https://github.com/expo/react-native/archive/sdk-41.0.0.tar.gz”
React-Native-Gesture-Handler: "^1.10.3"
【问题讨论】:
标签: reactjs react-native react-native-tab-view