KeyboardAccessoryView
View that allows replacing the default keyboard with other components
(code example)
Usageβ
Live Editor
<KeyboardAccessoryView renderContent={this.renderContent()} kbInputRef={this.inputRef} kbComponent={} kbInitialProps={} onHeightChanged={this.onHeightChanged()} scrollBehavior={KeyboardAccessoryView.scrollBehaviors.NONE} />
Result
Loading...
APIβ
kbComponentβ
The keyboard ID (the componentID sent to KeyboardRegistry)
string
kbInitialPropsβ
The props that will be sent to the KeyboardComponent
any
kbInputRefβ
iOS onlyβ
The reference to the actual text input (or the keyboard may not reset when instructed to, etc.).
any
onHeightChangedβ
A callback for when the height is changed
(height: number) => void
onItemSelectedβ
Callback that will be called when an item on the keyboard has been pressed.
() => void
onKeyboardResignedβ
Callback that will be called once the keyboard has been closed
() => void
onRequestShowKeyboardβ
Callback that will be called if KeyboardRegistry.requestShowKeyboard is called.
() => void
renderContentβ
Content to be rendered above the keyboard
() => React.ReactElement