diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index ef574ec807..c930440ba2 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -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 extends ScrollViewProps { updateCellsBatchingPeriod?: number; viewabilityConfig?: ViewabilityConfig; + + viewabilityConfigCallbackPairs: ViewabilityConfigCallbackPairs; /** * Determines the maximum number of items rendered outside of the visible area, in units of