import React, { BaseSyntheticEvent, MutableRefObject } from 'react'; import { NativeScrollEvent, ScrollView } from 'react-native'; import Animated from 'react-native-reanimated'; export interface LazyScrollViewMethods { scrollTo: typeof ScrollView.prototype.scrollTo; scrollToStart: typeof ScrollView.prototype.scrollToEnd; scrollToEnd: typeof ScrollView.prototype.scrollToEnd; } type AnimatedSyntheticEvent = BaseSyntheticEvent; export interface LazyScrollViewProps { /** * How far above or below the bottom of the ScrollView the threshold trigger is. Negative is above, postive it below. * @defaultValue 0 (bottom of ScrollView) */ offset?: number; /** * Ref to the LazyScrollView. Exposes scrollTo, scrollToStart, and scrollToEnd methods. */ ref?: MutableRefObject; /** * When true, console.logs scrollview measurements. Even if true, will not call console.log in production. */ debug?: boolean; /** * Scroll handler for the LazyScrollView. */ onScroll?: (event: AnimatedSyntheticEvent) => void; } type Props = LazyScrollViewProps & Omit, 'onLayout' | 'ref' | 'onScroll'>; /** * ScrollView to wrap Lazy Children in. */ declare const LazyScrollView: React.ForwardRefExoticComponent & React.RefAttributes>; export { LazyScrollView }; //# sourceMappingURL=LazyScrollView.d.ts.map