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(CommandUser | Emoji | UserResponse) |
triggerType
The trigger type triggers a particular type of autocomplete list depending on user input.
Type |
---|
’command’ | ‘emoji’ | ‘mention’ |
On this page: