import { Component, MutableRefObject, RefCallback } from 'react'; import { Animated, NativeSyntheticEvent, ScrollView, ScrollViewProps, StyleProp, TargetedEvent, ViewProps } from 'react-native'; declare module 'react-native' { const DeviceInfo: { isIPhoneX_deprecated: boolean; }; } declare type Props = typeof KeyboardAwareScrollView.defaultProps & { contentContainerStyleKeyboardShown?: StyleProp; scrollViewContentContainerStyle?: StyleProp; scrollViewRef?: MutableRefObject | RefCallback; onFocus?: (event: NativeSyntheticEvent) => void; } & ScrollViewProps; interface State { paddingBottom: Animated.Value; keyboardShown: boolean; scrollIndicatorBottomInset: number; } /** * Keyboard aware scroll view. * Based on react-native KeyboardAvoidingView and react-native-keyboard-aware-scroll-view. */ export declare class KeyboardAwareScrollView extends Component { static defaultProps: { extraHeight: number; }; private subscriptions; private scrollToFocusedInputTimeout; private scrollView; private mounted; private scrollViewPosY; private keyboardPosY; constructor(props: Props); componentDidMount(): void; componentWillUnmount(): void; private onRef; private onKeyboardShow; private onKeyboardHide; private onFocus; scrollToInput: (input: number) => Promise; render(): JSX.Element; } export {};