From ae6cbcf39298ad2c3f0a476d3b7e66b95176b9c4 Mon Sep 17 00:00:00 2001 From: Armands Baurovskis Date: Mon, 14 May 2018 17:04:46 +0300 Subject: [PATCH] = SectionList missing methods --- types/react-native/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 83266b6383..0ad2e8279f 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3843,6 +3843,19 @@ export interface SectionListProps extends ScrollViewProps { */ initialNumToRender?: number; + /** + * Called once when the scroll position gets within onEndReachedThreshold of the rendered content. + */ + onEndReached?: ((info: { distanceFromEnd: number }) => void) | null; + + /** + * How far from the end (in units of visible length of the list) the bottom edge of the + * list must be from the end of the content to trigger the `onEndReached` callback. + * Thus a value of 0.5 will trigger `onEndReached` when the end of the content is + * within half the visible length of the list. + */ + onEndReachedThreshold?: number | null; + /** * Used to extract a unique key for a given item at the specified index. Key is used for caching * and as the react key to track item re-ordering. The default extractor checks `item.key`, then