react-native-ui-lib
Version:
[](https://stand-with-ukraine.pp.ua)
27 lines (26 loc) • 900 B
TypeScript
export default class KeyboardUtils {
static displayName: string;
private static listeners;
private static addListener;
private static removeListener;
/**
* Used to dismiss (close) the keyboard.
*/
static dismiss: () => void;
}
interface KeyboardHeightProps {
id: string;
onDismiss: () => void;
}
declare const useKeyboardHeight: ({ id, onDismiss }: KeyboardHeightProps) => {
keyboardHeight: number;
isKeyboardVisible: boolean;
};
export interface KeyboardHeightListenerProps {
id: string;
onDismiss: () => void;
onKeyboardHeightChange?: (height: number) => void;
onKeyboardVisibilityChange?: (isKeyboardVisible: boolean) => void;
}
declare const KeyboardHeightListener: ({ id, onDismiss, onKeyboardHeightChange, onKeyboardVisibilityChange }: KeyboardHeightListenerProps) => null;
export { useKeyboardHeight, KeyboardHeightListener };