Upgrading from V4
This guide highlights the changes introduced from v4 to v5.
#
Prop or Context ChangesThe following values in ImageGalleryContext
have been renamed:
image
->selectedMessage
setImage
->setSelectedMessage
images
->messages
setImages
->setMessages
#
Dependency ChangesIf you have installed
stream-chat
dependency explicitly in your application, then upgrade it to v7:yarn add stream-chat@7.0.0
Replace
@react-native-community/cameraroll
dependency with@react-native-camera-roll/camera-roll
:yarn remove @react-native-community/cameraroll
yarn add @react-native-camera-roll/camera-roll
#
Unique Chat Component InstanceUntil v4, you could provide a separate Chat
component for each usage of Channel
component or ChannelList
component.
But from v5, you must provide only one instance of the Chat
component within your application.
This component needs to be a parent for all the chat-related components such as ChannelList
, Channel
or Thread
.
#
Enable Offline SupportTo enable offline support please check the Offline Support guide.