Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
stream-ci-bot committed Sep 25, 2024
1 parent a5107a7 commit cfdc0e3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docusaurus/docs/reactnative/guides/blocking-users.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title: Blocking Users

## Introduction

Blocking users is an essential feature in a chat app because it enhances user safety and experience. It allows individuals to protect themselves from harassment, spam, and unwanted interactions. By giving users control over their interactions, it helps maintain privacy, reduces the risk of cyberbullying, and promotes a respectful community atmosphere.
Blocking users is an essential feature in a chat app because it enhances user safety and experience. It allows individuals to protect themselves from harassment, spam, and unwanted interactions. By giving users control over their interactions, it helps maintain privacy, reduces the risk of cyber-bullying, and promotes a respectful community atmosphere.

As a result, some app stores require this functionality as part of their review process.

Expand Down
4 changes: 2 additions & 2 deletions docusaurus/docs/reactnative/guides/live-location-sharing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ const styles = StyleSheet.create({
export default Card;
```

Default UI components and context providers from the SDK are memoized for performance purposes adhering the `FlatList` performance optimization rules, and it will not trigger re-renders upon updates to custom properties on attachment.This can be solved by providing the `isAttachmentEqual` function prop in the `Channel` component which checks for changes in custom properties which you may have been defined on attachment.
Default UI components and context providers from the SDK are memoized for performance purposes adhering the `FlatList` performance optimization rules, and it will not trigger re-renders upon updates to custom properties on attachment. This can be solved by providing the `isAttachmentEqual` function prop in the `Channel` component which checks for changes in custom properties which you may have been defined on attachment.

```ts
const isAttachmentEqual: NonNullable<React.ComponentProps<typeof Channel<StreamChatGenerics>>['isAttachmentEqual']> = (
Expand All @@ -466,7 +466,7 @@ const isAttachmentEqual: NonNullable<React.ComponentProps<typeof Channel<StreamC
};
```

On the tap of a message, we want to navigate to the detail map. This can be done by by providing the `onPressMessage` function prop in the `Channel` component which is the callback executed when a message is tapped.
On the tap of a message, we want to navigate to the detail map. This can be done by providing the `onPressMessage` function prop in the `Channel` component which is the callback executed when a message is tapped.

```ts
const onPressMessage: NonNullable<
Expand Down

0 comments on commit cfdc0e3

Please sign in to comment.