InputButtons
Component to render the AttachButton and the CommandsButton on the left side of the input box within MessageInput.
This is the default component provided to the prop InputButtons on the Channel component.
Props
hasCommands
Enable commands on the MessageInput component.
| Type | Default |
|---|---|
| boolean | true |
hasCameraPicker
Enable the camera picker on the MessageInput component.
| Type | Default |
|---|---|
| Boolean | true |
hasFilePicker
Enable the file picker on the MessageInput component.
| Type | Default |
|---|---|
| Boolean | true |
hasImagePicker
Enable the image picker on the MessageInput component.
| Type | Default |
|---|---|
| Boolean | true |
selectedPicker
Value is images (string), when image attachment picker is open else undefined.
| Type |
|---|
| ’images’ | undefined |
toggleAttachmentPicker
Function to toggle attachment picker. By default, this function is attached to onPress handler for AttachButton.
| Type |
|---|
| Function |
uploadFile
Boolean to determine if the file upload capability is present in the channel.
| Type |
|---|
| Boolean |
UI Component Props
AttachButton
Component to render the attach button next to input box.
| Type | Default |
|---|---|
| ComponentType | AttachButton |
CommandsButton
Component to render button next to input box, which when pressed opens commands list.
| Type | Default |
|---|---|
| ComponentType | CommandsButton |
MoreOptionsButton
Component to render a button within enclosed MessageInput, which when pressed shows more options such as AttachButton, CommandsButton.
| Type | Default |
|---|---|
| ComponentType | MoreOptionsButton |