react-native-keyboard-controller
Version:
Keyboard manager which works in identical way on both iOS and Android
21 lines (17 loc) • 678 B
text/typescript
import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
import type { HostComponent } from "react-native";
import type { ViewProps } from "react-native/Libraries/Components/View/ViewPropTypes";
import type {
Double,
WithDefault,
} from "react-native/Libraries/Types/CodegenTypes";
export interface NativeProps extends ViewProps {
interpolator?: WithDefault<"linear" | "ios", "linear">;
showOnSwipeUp?: boolean;
enableSwipeToDismiss?: boolean;
offset?: Double;
textInputNativeID?: string;
}
export default codegenNativeComponent<NativeProps>("KeyboardGestureArea", {
interfaceOnly: true,
}) as HostComponent<NativeProps>;