import { Channel, AutoCompleteSuggestionItem } from 'stream-chat-react-native';
const AutoCompleteSuggestionItemComponent = () => <AutoCompleteSuggestionItem />
<Channel AutoCompleteSuggestionItem={AutoCompleteSuggestionItemComponent} />AutoCompleteSuggestionItem
Component to render and customize the list item in the auto suggestion list.
General Usage
You can customize the AutoCompleteSuggestionItem component and provide it back to the SDK via the AutoCompleteSuggestionItem prop on Channel if desired.
For more details about its usage refer Customizing autocomplete suggestions.
Props
itemProps
| type |
|---|
Suggestion(CommandSuggestion | Emoji | UserSuggestion) |
The CommandSuggestion and the UserSuggestion types are defined and imported from the stream-chat package, while the Emoji type is defined in the SDK.
triggerType
The trigger type triggers a particular type of autocomplete list depending on user input.
| Type |
|---|
| ’command’ | ‘emoji’ | ‘mention’ |