Keyboard
Control the software keyboard on iOS and Android.
Keyboard is available from nitro-ui-renderer.
dismiss()
Call Keyboard.dismiss() to hide the software keyboard. The returned Promise<void> resolves when the keyboard finishes hiding, or immediately if it is already hidden.
import { Keyboard } from 'nitro-ui-renderer'
await Keyboard.dismiss()By default, dismissal is animated and clears focus from the active input. Set keepFocus: true to leave the input focused. Tapping the input again brings the keyboard back.
await Keyboard.dismiss({ keepFocus: true })Set animated: false to request dismissal without animation. Android 10 and earlier use the system dismissal animation.
await Keyboard.dismiss({ animated: false })