Skip to content

Commit 1ce7e8e

Browse files
authored
fix: remove netinfo from native handlers and add it as dev dependency of core (#2538)
* fix: add expo-clipboard to peer deps of expo-package (#2537) * fix: remove netinfo from native handlers and add it as dev dependency of core * fix: lint issues * fix: revert back isMounted logic * fix: change peer dep
1 parent 95e9dc5 commit 1ce7e8e

File tree

38 files changed

+225
-453
lines changed

38 files changed

+225
-453
lines changed

docusaurus/docs/reactnative/basics/client.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const client = StreamChat.getInstance('api_key');
3131
**Usage of `StreamChat.getInstance()` available since [email protected].**
3232

3333
<br />
34-
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and retrieve
35-
it wherever you need it on your app to perform API calls. After calling it once, any following <code>
34+
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and
35+
retrieve it wherever you need it on your app to perform API calls. After calling it once, any following <code>
3636
getInstance
37-
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple StreamChat
38-
instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
37+
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple
38+
StreamChat instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
3939
<br />
4040
<br />
4141

docusaurus/docs/reactnative/customization/native-handlers.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,6 @@ A function that returns photos from the camera roll given an offset of `after` a
8686
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
8787
| [`@react-native-camera-roll/camera-roll`](https://github.com/react-native-cameraroll/react-native-cameraroll) | [`expo-media-library`](https://docs.expo.io/versions/latest/sdk/media-library/) |
8888

89-
### `NetInfo`
90-
91-
A object containing two keys, `addEventListener` and `fetch`, which are functions that allow a developer to add listeners to `NetInfo` or fetch information from `NetInfo`.
92-
93-
| React Native CLI | Expo |
94-
| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
95-
| [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) | [`@react-native-community/netinfo`](https://github.com/react-native-netinfo/react-native-netinfo) |
96-
9789
### `pickDocument`
9890

9991
A function to open the document picker and return documents picked from it.

docusaurus/docs/reactnative/state-and-offline-support/state-overview.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ const client = StreamChat.getInstance('api_key');
3030
**Usage of `StreamChat.getInstance()` available since [email protected].**
3131

3232
<br />
33-
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and retrieve
34-
it wherever you need it on your app to perform API calls. After calling it once, any following <code>
33+
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and
34+
retrieve it wherever you need it on your app to perform API calls. After calling it once, any following <code>
3535
getInstance
36-
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple StreamChat
37-
instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
36+
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple
37+
StreamChat instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
3838
<br />
3939
<br />
4040

docusaurus/reactnative_versioned_docs/version-3.x.x/basics/client.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const client = StreamChat.getInstance('api_key');
3131
**Usage of `StreamChat.getInstance()` available since [email protected].**
3232

3333
<br />
34-
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and retrieve
35-
it wherever you need it on your app to perform API calls. After calling it once, any following <code>
34+
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and
35+
retrieve it wherever you need it on your app to perform API calls. After calling it once, any following <code>
3636
getInstance
37-
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple StreamChat
38-
instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
37+
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple
38+
StreamChat instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
3939
<br />
4040
<br />
4141

docusaurus/reactnative_versioned_docs/version-3.x.x/basics/stream_chat_with_navigation.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ The guidance provided makes the assumption you are using [React Navigation](http
2121

2222
<code>createNativeStackNavigator</code> uses the native APIs <code>UINavigationController</code> on iOS and <code>
2323
Fragment
24-
</code> on Android. The <code>OverlayProvider</code> needs to exist in a view that can render content in front of the chat
25-
screen. Therefore using a <code>fullScreenModal</code> with <code>createNativeStackNavigator</code>, which uses <code>
24+
</code> on Android. The <code>OverlayProvider</code> needs to exist in a view that can render content in front of the
25+
chat screen. Therefore using a <code>fullScreenModal</code> with <code>createNativeStackNavigator</code>, which uses <code>
2626
UIModalPresentationFullScreen
27-
</code> on iOS and <code>modal</code> on Android, to render your chat screen will leave the <code>
28-
OverlayProvider
29-
</code> rendered behind the chat. If you are having issues we suggest you get in touch with support and we can find a
30-
solution to your specific navigation arrangement.
27+
</code> on iOS and <code>modal</code> on Android, to render your chat screen will leave the <code>OverlayProvider</code> rendered
28+
behind the chat. If you are having issues we suggest you get in touch with support and we can find a solution to your
29+
specific navigation arrangement.
3130

3231
:::
3332

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ const client = StreamChat.getInstance('api_key');
3131
**Usage of `StreamChat.getInstance()` available since [email protected].**
3232

3333
<br />
34-
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and retrieve
35-
it wherever you need it on your app to perform API calls. After calling it once, any following <code>
34+
This new Singleton pattern allows you to instantiate a unique StreamChat client, i.e create a StreamChat instance and
35+
retrieve it wherever you need it on your app to perform API calls. After calling it once, any following <code>
3636
getInstance
37-
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple StreamChat
38-
instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
37+
</code> call will return the initial StreamChat instance. This will prevent you from accidentally creating multiple
38+
StreamChat instances, opening multiple WebSockets, and driving up your concurrent connections unnecessarily.
3939
<br />
4040
<br />
4141

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ The guidance provided makes the assumption you are using [React Navigation](http
2121

2222
<code>createNativeStackNavigator</code> uses the native APIs <code>UINavigationController</code> on iOS and <code>
2323
Fragment
24-
</code> on Android. The <code>OverlayProvider</code> needs to exist in a view that can render content in front of the chat
25-
screen. Therefore using a <code>fullScreenModal</code> with <code>createNativeStackNavigator</code>, which uses <code>
24+
</code> on Android. The <code>OverlayProvider</code> needs to exist in a view that can render content in front of the
25+
chat screen. Therefore using a <code>fullScreenModal</code> with <code>createNativeStackNavigator</code>, which uses <code>
2626
UIModalPresentationFullScreen
27-
</code> on iOS and <code>modal</code> on Android, to render your chat screen will leave the <code>
28-
OverlayProvider
29-
</code> rendered behind the chat. If you are having issues we suggest you get in touch with support and we can find a
30-
solution to your specific navigation arrangement.
27+
</code> on iOS and <code>modal</code> on Android, to render your chat screen will leave the <code>OverlayProvider</code> rendered
28+
behind the chat. If you are having issues we suggest you get in touch with support and we can find a solution to your
29+
specific navigation arrangement.
3130

3231
:::
3332

examples/ExpoMessaging/yarn.lock

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7327,10 +7327,10 @@ [email protected]:
73277327
version "0.0.0"
73287328
uid ""
73297329

7330-
stream-chat-react-native-core@5.29.0:
7331-
version "5.29.0"
7332-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.29.0.tgz#b89d5f954c2063316ab6dc254e0b98188f01524d"
7333-
integrity sha512-cm8CQUIHPE+hHxM1hVQ6V3ogUJLpGPRZBvMYbJW7+MBdhUTn4+40EqEbqHTEtHdkLgPUmxaDJsh/gFCtVEGgog==
7330+
stream-chat-react-native-core@5.31.1:
7331+
version "5.31.1"
7332+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.31.1.tgz#4367276c8316d325e6b062e4efb95d464d4e2eef"
7333+
integrity sha512-EKHMQ0bWRoyubTxk1IKEbkIzcIY5hxHDpyGU7ObGXLLnhoVBEDranZBQ7dNDdbuM88uKh9mGK5WH4NQSTioKxQ==
73347334
dependencies:
73357335
"@gorhom/bottom-sheet" "4.4.8"
73367336
dayjs "1.10.5"
@@ -7342,27 +7342,12 @@ [email protected]:
73427342
path "0.12.7"
73437343
react-native-markdown-package "1.8.2"
73447344
react-native-url-polyfill "^1.3.0"
7345-
stream-chat "8.17.0"
7345+
stream-chat "8.31.0"
73467346

73477347
"stream-chat-react-native-core@link:../../package":
73487348
version "0.0.0"
73497349
uid ""
73507350

7351-
7352-
version "8.17.0"
7353-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.17.0.tgz#01c4aacbcdb5dd734b088e70f40cd42a0bcd0fb7"
7354-
integrity sha512-0cYKSroKGiLilElk8Ol6AKAowWIIpXz3wsY97o+cAqixOwwHdnbuPZ00L2CzAjNB2c94Vl5L48n1K+9iOEpv3w==
7355-
dependencies:
7356-
"@babel/runtime" "^7.16.3"
7357-
"@types/jsonwebtoken" "~9.0.0"
7358-
"@types/ws" "^7.4.0"
7359-
axios "^1.6.0"
7360-
base64-js "^1.5.1"
7361-
form-data "^4.0.0"
7362-
isomorphic-ws "^4.0.1"
7363-
jsonwebtoken "~9.0.0"
7364-
ws "^7.4.4"
7365-
73667351
73677352
version "8.31.0"
73687353
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.31.0.tgz#387ed3109ac930e222bf260d98afc37dd1fcb1ac"

examples/SampleApp/yarn.lock

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6825,10 +6825,10 @@ statuses@~1.5.0:
68256825
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
68266826
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
68276827

6828-
stream-chat-react-native-core@5.29.0:
6829-
version "5.29.0"
6830-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.29.0.tgz#b89d5f954c2063316ab6dc254e0b98188f01524d"
6831-
integrity sha512-cm8CQUIHPE+hHxM1hVQ6V3ogUJLpGPRZBvMYbJW7+MBdhUTn4+40EqEbqHTEtHdkLgPUmxaDJsh/gFCtVEGgog==
6828+
stream-chat-react-native-core@5.31.1:
6829+
version "5.31.1"
6830+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.31.1.tgz#4367276c8316d325e6b062e4efb95d464d4e2eef"
6831+
integrity sha512-EKHMQ0bWRoyubTxk1IKEbkIzcIY5hxHDpyGU7ObGXLLnhoVBEDranZBQ7dNDdbuM88uKh9mGK5WH4NQSTioKxQ==
68326832
dependencies:
68336833
"@gorhom/bottom-sheet" "4.4.8"
68346834
dayjs "1.10.5"
@@ -6840,7 +6840,7 @@ [email protected]:
68406840
path "0.12.7"
68416841
react-native-markdown-package "1.8.2"
68426842
react-native-url-polyfill "^1.3.0"
6843-
stream-chat "8.17.0"
6843+
stream-chat "8.31.0"
68446844

68456845
"stream-chat-react-native-core@link:../../package":
68466846
version "0.0.0"
@@ -6850,21 +6850,6 @@ [email protected]:
68506850
version "0.0.0"
68516851
uid ""
68526852

6853-
6854-
version "8.17.0"
6855-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.17.0.tgz#01c4aacbcdb5dd734b088e70f40cd42a0bcd0fb7"
6856-
integrity sha512-0cYKSroKGiLilElk8Ol6AKAowWIIpXz3wsY97o+cAqixOwwHdnbuPZ00L2CzAjNB2c94Vl5L48n1K+9iOEpv3w==
6857-
dependencies:
6858-
"@babel/runtime" "^7.16.3"
6859-
"@types/jsonwebtoken" "~9.0.0"
6860-
"@types/ws" "^7.4.0"
6861-
axios "^1.6.0"
6862-
base64-js "^1.5.1"
6863-
form-data "^4.0.0"
6864-
isomorphic-ws "^4.0.1"
6865-
jsonwebtoken "~9.0.0"
6866-
ws "^7.4.4"
6867-
68686853
68696854
version "8.31.0"
68706855
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.31.0.tgz#387ed3109ac930e222bf260d98afc37dd1fcb1ac"

examples/TypeScriptMessaging/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ PODS:
955955
- React-Core
956956
- react-native-image-resizer (1.4.5):
957957
- React-Core
958-
- react-native-netinfo (11.3.0):
958+
- react-native-netinfo (11.3.2):
959959
- React-Core
960960
- react-native-quick-sqlite (8.0.2):
961961
- React
@@ -1476,7 +1476,7 @@ SPEC CHECKSUMS:
14761476
react-native-document-picker: 2b8f18667caee73a96708a82b284a4f40b30a156
14771477
react-native-flipper: 9c1957af24b76493ba74f46d000a5c1d485e7731
14781478
react-native-image-resizer: d9fb629a867335bdc13230ac2a58702bb8c8828f
1479-
react-native-netinfo: 299dad906cdbf3b67bcc6f693c807f98bdd127cc
1479+
react-native-netinfo: 076df4f9b07f6670acf4ce9a75aac8d34c2e2ccc
14801480
react-native-quick-sqlite: 2b225dadc63b670f027111e58f6f169773f6d755
14811481
react-native-safe-area-context: b97eb6f9e3b7f437806c2ce5983f479f8eb5de4b
14821482
react-native-video: d440605e68cf173e70f0b25112455e3d86890663
@@ -1517,4 +1517,4 @@ SPEC CHECKSUMS:
15171517

15181518
PODFILE CHECKSUM: 90406e1e85c82b37484f5d746afa45c0637bb4b3
15191519

1520-
COCOAPODS: 1.15.2
1520+
COCOAPODS: 1.14.3

0 commit comments

Comments
 (0)