KeyboardAccessoryView
View that allows replacing the default keyboard with other components
(code example)
#
Usage<KeyboardAccessoryView renderContent={this.renderContent()} kbInputRef={this.inputRef} kbComponent={} kbInitialProps={} onHeightChanged={this.onHeightChanged()} scrollBehavior={KeyboardAccessoryView.scrollBehaviors.NONE}/>
#
API#
kbComponentThe keyboard ID (the componentID sent to KeyboardRegistry)
string
#
kbInitialPropsThe props that will be sent to the KeyboardComponent
any
#
kbInputRef#
iOS onlyThe reference to the actual text input (or the keyboard may not reset when instructed to, etc.).
any
#
onHeightChangedA callback for when the height is changed
(height: number) => void
#
onItemSelectedCallback that will be called when an item on the keyboard has been pressed.
() => void
#
onKeyboardResignedCallback that will be called once the keyboard has been closed
() => void
#
onRequestShowKeyboardCallback that will be called if KeyboardRegistry.requestShowKeyboard is called.
() => void
#
renderContentContent to be rendered above the keyboard
() => React.ReactElement