mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-06 10:10:08 +00:00
Add viewabilityConfigCallbackPairs property
This commit is contained in:
9
types/react-native/index.d.ts
vendored
9
types/react-native/index.d.ts
vendored
@@ -3582,6 +3582,13 @@ export interface ViewabilityConfig {
|
||||
*/
|
||||
waitForInteraction?: boolean;
|
||||
}
|
||||
|
||||
export interface ViewabilityConfigCallbackPair {
|
||||
viewabilityConfig: ViewabilityConfig;
|
||||
onViewableItemsChanged: (info: ViewabilityInfo) => void;
|
||||
};
|
||||
|
||||
export type ViewabilityConfigCallbackPairs = ViewabilityConfigCallbackPair[];
|
||||
|
||||
/**
|
||||
* @see https://facebook.github.io/react-native/docs/flatlist.html#props
|
||||
@@ -4111,6 +4118,8 @@ export interface VirtualizedListProps<ItemT> extends ScrollViewProps {
|
||||
updateCellsBatchingPeriod?: number;
|
||||
|
||||
viewabilityConfig?: ViewabilityConfig;
|
||||
|
||||
viewabilityConfigCallbackPairs: ViewabilityConfigCallbackPairs;
|
||||
|
||||
/**
|
||||
* Determines the maximum number of items rendered outside of the visible area, in units of
|
||||
|
||||
Reference in New Issue
Block a user