Skip to content

Commit c5bee16

Browse files
authored
docs: remove unneeded stream-chat addition from v5 onwards (#1935)
1 parent 1b266fb commit c5bee16

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

docusaurus/docs/reactnative/basics/offline_support.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ The following features are currently **NOT** implemented. They will be implement
2828
First and foremost make sure to follow all steps from [Migrating to v5](./upgrade_helper.mdx) guide.
2929
To enable offline support, please follow the given steps:
3030

31-
1. **Upgrade stream-chat dependency (optional)**
31+
1. **Remove stream-chat dependency (when applicable)**
3232

33-
If you have installed `stream-chat` dependency explicitly on your application, then please make sure to upgrade it to v7 or higher.
33+
If you have installed `stream-chat` dependency explicitly on your application, then please make sure you remove it.
34+
Our Chat SDK (`stream-chat-react-native`) has `stream-chat` as a dependency (not peer dependency).
35+
Therefore, having `stream-chat` in your app's package.json is discouraged and will probably cause random issues that will disturb the chat functionalities.
3436

3537
```bash
36-
yarn add stream-chat
38+
yarn remove stream-chat
3739
```
3840

3941
2. **Add `react-native-quick-sqlite` dependency**

docusaurus/docs/reactnative/basics/upgrade_helper.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ The following values in [`ImageGalleryContext`](../../contexts/image-gallery-con
1919

2020
## Dependency Changes
2121

22-
- If you have installed `stream-chat` dependency explicitly in your application, then upgrade it to v7:
22+
## Remove stream-chat dependency (when applicable)
2323

24-
```bash
25-
26-
```
24+
If you have installed `stream-chat` dependency explicitly on your application, then please make sure you remove it.
25+
Our Chat SDK (`stream-chat-react-native`) has `stream-chat` as a dependency (not peer dependency).
26+
Therefore, having `stream-chat` in your app's package.json is discouraged and will probably cause random issues that will disturb the chat functionalities.
27+
28+
```bash
29+
yarn remove stream-chat
30+
```
2731

2832
- 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):
2933

package/expo-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2998,10 +2998,10 @@ [email protected]:
29982998
resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
29992999
integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==
30003000

3001-
stream-chat-react-native-core@5.8.0:
3002-
version "5.8.0"
3003-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.8.0.tgz#650e224be1663be363044bad0f1244582f8c7d4f"
3004-
integrity sha512-YhnWeVwdYCpoyFdbYwizDKFWdIU8DgMUduA/mA1tvaSkFRQqFIAoJeIEqd5TeMjQnAPLXvZXkdhqAXy9FjVhjw==
3001+
stream-chat-react-native-core@5.9.0:
3002+
version "5.9.0"
3003+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.9.0.tgz#a226a1f9d629d1f3e212df1f2a46312c544bc0bb"
3004+
integrity sha512-goG9dyDpVopspGt3gq31ILkwEzdolo0+CdhcpVeGmOB2CZ0tF9X78uByrj4/7VsqpCkC0hi4uMSEsERM3DZdbg==
30053005
dependencies:
30063006
"@babel/runtime" "^7.12.5"
30073007
"@gorhom/bottom-sheet" "4.4.5"

package/native-package/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4408,10 +4408,10 @@ statuses@~1.5.0:
44084408
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
44094409
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
44104410

4411-
stream-chat-react-native-core@5.8.0:
4412-
version "5.8.0"
4413-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.8.0.tgz#650e224be1663be363044bad0f1244582f8c7d4f"
4414-
integrity sha512-YhnWeVwdYCpoyFdbYwizDKFWdIU8DgMUduA/mA1tvaSkFRQqFIAoJeIEqd5TeMjQnAPLXvZXkdhqAXy9FjVhjw==
4411+
stream-chat-react-native-core@5.9.0:
4412+
version "5.9.0"
4413+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.9.0.tgz#a226a1f9d629d1f3e212df1f2a46312c544bc0bb"
4414+
integrity sha512-goG9dyDpVopspGt3gq31ILkwEzdolo0+CdhcpVeGmOB2CZ0tF9X78uByrj4/7VsqpCkC0hi4uMSEsERM3DZdbg==
44154415
dependencies:
44164416
"@babel/runtime" "^7.12.5"
44174417
"@gorhom/bottom-sheet" "4.4.5"

0 commit comments

Comments
 (0)