Skip to content

Commit 550fba7

Browse files
docs: update upgrade-helper for v5
1 parent 6358846 commit 550fba7

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

docusaurus/docs/reactnative/basics/upgrade_helper.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,21 @@ Following values in [`ImageGalleryContext`](https://getstream.io/chat/docs/sdk/r
1515
- `images` -> `messages`
1616
- `setImages` -> `setMessages`
1717

18+
## Dependency Changes
19+
20+
- If you have installed `stream-chat` dependency explicitly on your application, then upgrade it to v7
21+
22+
```bash
23+
24+
```
25+
26+
- Replace [`@react-native-community/cameraroll`](https://github.com/react-native-cameraroll/react-native-cameraroll) dependency with [`@react-native-camera-roll/camera-roll`](https://www.npmjs.com/package/@react-native-camera-roll/camera-roll)
27+
28+
```bash
29+
yarn remove @react-native-community/cameraroll
30+
yarn add @react-native-camera-roll/camera-roll
31+
```
32+
1833
## Enable Offline Support
1934

2035
Offline Support is a major opt-in feature introduced in v5 of SDK.

docusaurus/reactnative_versioned_docs/version-4.x.x/basics/getting_started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Stream Chat has a number of peer dependencies that are required to take advantag
4747
It is suggested you follow the install instructions for each package to ensure it is properly setup.
4848
Most if not all of the required packages now support auto-linking so setup should be minimal. Those with known [additional steps](#additional-steps) have been noted.
4949

50-
- [`@stream-io/react-native-cameraroll`](https://github.com/GetStream/react-native-cameraroll)
50+
- [`@react-native-community/cameraroll`](https://github.com/react-native-cameraroll/react-native-cameraroll)
5151
- [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo)
5252
- [`@stream-io/flat-list-mvcp`](https://github.com/GetStream/flat-list-mvcp)
5353
- [`react-native-document-picker`](https://github.com/rnmods/react-native-document-picker)
@@ -71,14 +71,14 @@ Most if not all of the required packages now support auto-linking so setup shoul
7171
<TabItem value='yarn'>
7272

7373
```bash
74-
yarn add @stream-io/react-native-cameraroll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
74+
yarn add @react-native-community/cameraroll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
7575
```
7676

7777
</TabItem>
7878
<TabItem value='npm'>
7979

8080
```bash
81-
npm install @stream-io/react-native-cameraroll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
81+
npm install @react-native-community/cameraroll @react-native-community/netinfo @stream-io/flat-list-mvcp react-native-document-picker react-native-fs react-native-gesture-handler react-native-haptic-feedback react-native-haptic-feedback react-native-image-crop-picker react-native-image-resizer react-native-reanimated react-native-safe-area-context react-native-share react-native-svg
8282
```
8383

8484
</TabItem>
@@ -151,7 +151,7 @@ For some of the packages listed below, there are additional steps required to se
151151

152152
- `react-native` - [additional installation steps](https://reactnative.dev/docs/image#gif-and-webp-support-on-android)
153153
- `react-native-image-crop-picker` - [additional installation steps](https://github.com/ivpusic/react-native-image-crop-picker#step-3)
154-
- `react-native-cameraroll` - [additional installation steps](https://github.com/GetStream/react-native-cameraroll#permissions)
154+
- `react-native-cameraroll` - [additional installation steps](https://github.com/react-native-cameraroll/react-native-cameraroll#permissions)
155155

156156
:::note
157157

0 commit comments

Comments
 (0)