import type { CodegenTypes, HostComponent, ViewProps } from 'react-native'; import { codegenNativeComponent } from 'react-native'; type SoftInputEventData = Readonly<{ softInputHeight: CodegenTypes.Int32; }>; type SoftInputAppliedOffsetEventData = Readonly<{ appliedOffset: CodegenTypes.Int32; }>; type SoftInputEasing = 'easeIn' | 'easeInOut' | 'easeOut' | 'linear'; interface AvoidSoftInputViewProps extends ViewProps { /** * @default 0 */ avoidOffset?: CodegenTypes.WithDefault; /** * @default 'linear' */ easing?: CodegenTypes.WithDefault; /** * @default true */ enabled?: CodegenTypes.WithDefault; /** * @default (300/0) ms (iOS/Android) */ hideAnimationDelay?: CodegenTypes.WithDefault; /** * @default 220 ms */ hideAnimationDuration?: CodegenTypes.WithDefault; /** * @default 0 ms */ showAnimationDelay?: CodegenTypes.WithDefault; /** * @default 660 ms */ showAnimationDuration?: CodegenTypes.WithDefault; onSoftInputAppliedOffsetChange?: CodegenTypes.DirectEventHandler; onSoftInputHeightChange?: CodegenTypes.DirectEventHandler; onSoftInputHidden?: CodegenTypes.DirectEventHandler; onSoftInputShown?: CodegenTypes.DirectEventHandler; } export default codegenNativeComponent( 'AvoidSoftInputView', ) as HostComponent;