import { Channel, AutoCompleteSuggestionItem } from 'stream-chat-react-native';
const AutoCompleteSuggestionItemComponent = () => <AutoCompleteSuggestionItem />
<Channel AutoCompleteSuggestionItem={AutoCompleteSuggestionItemComponent} />
This is documentation for
Stream Chat React Native SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).
AutoCompleteSuggestionItem
Component to render and customize the list item in the auto suggestion list.
Basic 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: