AutoCompleteInput

Component to render input box within the MessageInput. This component provides autocomplete functionality for the commands and mentions feature. Commands suggestions will show up when user types “/” while mentions suggestions will show up when user types “@.”

Check the Customize Message Input guide for more details on how to customize this component.

Props

This extends the TextInputProps from React Native, and adds the following props:

channel

The channel in which the message input is being used. This is required to fetch the channel state and provide suggestions.

typedefault
Channel

cooldownActive

Whether there is currently a cool-down active in a channel with slow mode enabled.

typedefault
Booleanfalse

setInputBoxRef

Setter function for inputBoxRef

Type
(ref) => void

t

Given a key, extracts the translated text from the Streami18n instance.

Type
function
© Getstream.io, Inc. All Rights Reserved.