Merge pull request #25769 from ArmandsB/master

[@types/react-native] Missing methods for SectionList
This commit is contained in:
Eloy Durán
2018-05-14 16:23:44 +02:00
committed by GitHub
+13
View File
@@ -3843,6 +3843,19 @@ export interface SectionListProps<ItemT> 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