This is documentation for the release candidate
Stream Chat React Native SDK v8. For the latest stable version, see the latest version (v7).
AttachButton
Component to render a button to open the attachment picker, within the MessageInput
.
This is the default component provided to the prop AttachButton
on the Channel
component.
Props
disabled
True if channel is frozen and disableIfFrozenChannel is true.
Type |
---|
Boolean |
handleOnPress
onPress
handler for this button.
Type |
---|
function |
handleAttachButtonPress
Function to customize the behaviour when the AttachButton is pressed in the message input.
Type |
---|
() => void |
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 |