Add viewabilityConfigCallbackPairs property

This commit is contained in:
Simon Ley
2018-06-08 14:00:24 +02:00
committed by GitHub
parent ebadb7272e
commit 5802bcc35d

View File

@@ -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