Skip to main content

KeyboardAccessoryView

<KeyboardAccessoryView
renderContent={this.renderContent()}
kbInputRef={this.inputRef}
kbComponent={}
kbInitialProps={}
onHeightChanged={this.onHeightChanged()}
scrollBehavior={KeyboardAccessoryView.scrollBehaviors.NONE}
/>
APIThis is the list of additional props for the component

kbComponent
string
​

The keyboard ID (the componentID sent to KeyboardRegistry)

kbInitialProps
any
​

The props that will be sent to the KeyboardComponent

kbInputRef
any
Required
​

The reference to the actual text input (or the keyboard may not reset when instructed to, etc.)iOS only

onHeightChanged
(height: number) => void
​

A callback for when the height is changed

onItemSelected
() => void
​

Callback that will be called when an item on the keyboard has been pressed

onKeyboardResigned
() => void
​

Callback that will be called once the keyboard has been closed

onRequestShowKeyboard
() => void
​

Callback that will be called if KeyboardRegistry.requestShowKeyboard is called

renderContent
() => React.ReactElement
​

Content to be rendered above the keyboard