Replies: 1 comment
-
Are you running on old arch? v2 doesn't kick in unless you're on new arch. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
here is the code. whle reaching down, loadnewdata metod is firing but while reaching to loadolddata method is NOT getting fired. Any idea why ?
<FlashList
ref={listRef}
data={ads}
itemKey={(item) => item?.id}
renderItem={renderAd}
estimatedItemSize={350}
initialScrollIndex={10}
onStartReached={loadolddata}
onEndReached={loadnewdata}
onStartReachedThreshold={0.1}
onEndReachedThreshold={0.7}
maintainVisibleContentPosition={{
minIndexForVisible: 0, // required to retain scroll position when prepending
}}
onScrollToIndexFailed={({ index, highestMeasuredFrameIndex }) => {
listRef.current?.scrollToIndex({
index: highestMeasuredFrameIndex,
animated: false,
});
}}
showsVerticalScrollIndicator={false}
/>
Beta Was this translation helpful? Give feedback.
All reactions