UNPKG

react-native-keyboard-controller

Version:

Keyboard manager which works in identical way on both iOS and Android

15 lines (13 loc) 507 B
import type { FocusedInputHandler, KeyboardHandler } from "./types"; export const keyboardEventsMap = new Map<keyof KeyboardHandler, string>([ ["onStart", "onKeyboardMoveStart"], ["onMove", "onKeyboardMove"], ["onEnd", "onKeyboardMoveEnd"], ["onInteractive", "onKeyboardMoveInteractive"], ]); export const focusedInputEventsMap = new Map<keyof FocusedInputHandler, string>( [ ["onChangeText", "onFocusedInputTextChanged"], ["onSelectionChange", "onFocusedInputSelectionChanged"], ], );