@@ -31,6 +31,12 @@ The following values in [`ImageGalleryContext`](https://getstream.io/chat/docs/s
3131 yarn remove @react-native-community/cameraroll
3232 yarn add @react-native-camera-roll/camera-roll
3333 ```
34+
35+ ## Unique Chat Component Instance
36+
37+ Until v4, you could provide a separate ` Chat ` component for each usage of ` Channel ` component or ` ChannelList ` component.
38+ But from v5, you must provide only one instance of the ` Chat ` component within your application.
39+ This component needs to be a parent for all the chat-related components such as ` ChannelList ` , ` Channel ` or ` Thread ` .
3440
3541## Enable Offline Support
3642
@@ -67,13 +73,7 @@ To enable offline support, please follow the given steps:
6773 npx pod-install
6874 ```
6975
70- 3 . ** Ensure a unique instance of Chat component**
71-
72- Until v4, you could provide a separate ` Chat ` component for each usage of ` Channel ` component or ` ChannelList ` component.
73- But from v5, you must provide only one instance of the ` Chat ` component within your application.
74- This component needs to be a parent for all the chat-related components such as ` ChannelList ` , ` Channel ` or ` Thread ` .
75-
76- 4 . ** Do not wait for ` connectUser ` call to succeed**
76+ 3 . ** Do not wait for ` connectUser ` call to succeed**
7777
7878 It is important that you call the ` connectUser ` method on the chat client, before you render Chat components.
7979 But you don't need to wait for ` connectUser ` to succeed before rendering Chat components. This is to ensure:
@@ -107,7 +107,7 @@ To enable offline support, please follow the given steps:
107107 };
108108 ```
109109
110- 5 . ** Add ` enableOfflineSupport ` prop on Chat component**
110+ 4 . ** Add ` enableOfflineSupport ` prop on Chat component**
111111
112112 ``` tsx
113113 import { Chat } from ' stream-chat-react-native' ;
@@ -117,7 +117,7 @@ To enable offline support, please follow the given steps:
117117 </Chat >;
118118 ```
119119
120- 6 . ** Reset the database when signing out the user**
120+ 5 . ** Reset the database when signing out the user**
121121
122122 Since the SDK doesn't handle app-level authentication logic, it's the application's responsibility
123123 to ensure the database is reset when a user gets logged out. This should generally be done before you
0 commit comments