Info:
This is documentation for Stream Chat React Native SDK v6, which is no longer actively maintained. For up-to-date documentation, see the latest version (v9).

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.

import { Channel, AutoCompleteSuggestionItem } from 'stream-chat-react-native';

const AutoCompleteSuggestionItemComponent = () => <AutoCompleteSuggestionItem />

<Channel AutoCompleteSuggestionItem={AutoCompleteSuggestionItemComponent} />

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'
Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat React Native v6: <Your Question>