Skip to content

Commit

Permalink
docs: pass default props for custom reaction list component
Browse files Browse the repository at this point in the history
  • Loading branch information
santhoshvai committed Dec 5, 2023
1 parent 9a073ca commit fe7967e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docusaurus/docs/reactnative/ui-components/reaction_list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ This is the default component provided to the prop [`ReactionList`](../core-comp
**Use case**: Override the background color on the reaction list container.

```tsx
import { Channel, ReactionList } from 'stream-chat-react-native';
import { Channel, ReactionList, ReactionListProps } from 'stream-chat-react-native';

const ReactionListWithCustomBackground = () => <ReactionList fill={'#00DDD'} stroke={'#fffff'} />
const ReactionListWithCustomBackground = (props: ReactionListProps) => <ReactionList {...props} fill={'#00DDD'} stroke={'#fffff'} />

<Channel ReactionList={ReactionListWithCustomBackground} />
```
Expand Down

0 comments on commit fe7967e

Please sign in to comment.