diff --git a/index.d.ts b/index.d.ts index bf03b26..19480b2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,7 +7,9 @@ import * as React from 'react' import { ScrollViewProps, FlatListProps, - SectionListProps + SectionListProps, + LayoutRectangle, + NativeScrollPoint } from 'react-native' interface KeyboardAwareProps { @@ -167,6 +169,16 @@ declare class ScrollableComponent
extends React.Component
{ extraHeight?: number, keyboardOpeningTime?: number ) => void + scrollIntoView: ( + element: React.ReactElement, + options?: { + getScrollPosition?: ( + parentLayout: LayoutRectangle, + childLayout: LayoutRectangle, + contentOffset: NativeScrollPoint + ) => NativeScrollPoint & { animated?: boolean } + } + ) => void } export class KeyboardAwareMixin {}