KeyboardAvoidingView
The web counterpart of React Native’s component.'padding' | 'position'
default:"'padding'"
How to make room.
number
default:"0"
Extra gap above the keyboard, in px.
div.
useKeyboard
height is in CSS pixels, and duration is the keyboard animation in milliseconds (250 when the shell does not send one). Without React: getKeyboardState() and onKeyboardChange(cb).
@cskn/ui’s Screen also takes keyboardAvoiding, which pads the bottom of the screen by the keyboard height.
Don’t avoid the keyboard twice
In a plain browser there is no bridge and no keyboard event, sovisualViewport is the only signal. If you support both, stop following visualViewport while visible is true.