mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #25769 from ArmandsB/master
[@types/react-native] Missing methods for SectionList
This commit is contained in:
Vendored
+13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user