diff --git a/index.d.ts b/index.d.ts index bf03b26..1e3a70f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -182,3 +182,36 @@ export class KeyboardAwareSectionList extends ScrollableComponent< KeyboardAwareSectionListProps, KeyboardAwareState > {} + +export type KeyboardAwareOptions = { + enableOnAndroid?: boolean; + contentContainerStyle?: {}; + enableAutomaticScroll?: boolean; + extraHeight?: number; + extraScrollHeight?: number; + enableResetScrollToCoords?: boolean; + keyboardOpeningTime?: number; + viewIsInsideTabBar?: boolean; + refPropName?: string; + extractNativeRef?(ref: JSX.Element): JSX.Element; +}; + +export function listenToKeyboardEvents

( + options: KeyboardAwareOptions +): ( + Comp: React.ComponentType

+) => { + new (props: P | KeyboardAwareProps): ScrollableComponent< + P | KeyboardAwareProps, + KeyboardAwareState + >; +}; + +export function listenToKeyboardEvents

( + Comp: React.ComponentType

+): { + new (props: P | KeyboardAwareProps): ScrollableComponent< + P | KeyboardAwareProps, + KeyboardAwareState + >; +};