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.
| type | default |
|---|---|
| Channel |
cooldownActive
Whether there is currently a cool-down active in a channel with slow mode enabled.
| type | default |
|---|---|
| Boolean | false |
setInputBoxRef
Setter function for inputBoxRef
| Type |
|---|
(ref) => void |
t
Given a key, extracts the translated text from the Streami18n instance.
| Type |
|---|
| function |
TextInputComponent
The component prop to override the default TextInput component in this component.
| Type | Default |
|---|---|
| ComponentType | Default React Native’s TextInput |