AutoCompleteInput
Renders the input box inside MessageInput. Provides autocomplete for commands (/) and mentions (@).
See the Customize Message Input guide for customization details.
Best Practices
- Pass the correct
channelso suggestions and slow mode work properly. - Avoid heavy custom
TextInputComponentlogic that can affect typing latency. - Use
cooldownActiveto disable input or show helper UI. - Keep translations centralized via
tinstead of hardcoded strings. - Use
setInputBoxRefonly when you need imperative focus/blur control.
Props
Extends TextInputProps and adds:
channel
The channel for this input. Required to fetch state and provide suggestions.
| type | default |
|---|---|
| Channel |
cooldownActive
Whether a cooldown is active for a channel with slow mode enabled.
| type | default |
|---|---|
| Boolean | false |
setInputBoxRef
Setter function for inputBoxRef
| Type |
|---|
(ref) => void |
t
Given a key, returns the translated text from the Streami18n instance.
| Type |
|---|
| function |
TextInputComponent
Override the default TextInput component.
| Type | Default |
|---|---|
| ComponentType | Default React Native's TextInput |