File tree Expand file tree Collapse file tree 12 files changed +67
-65
lines changed
docusaurus/docs/reactnative/basics Expand file tree Collapse file tree 12 files changed +67
-65
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,14 @@ The following features are currently **NOT** implemented. They will be implement
2828First and foremost make sure to follow all steps from [ Migrating to v5] ( ./upgrade_helper.mdx ) guide.
2929To 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
39412 . ** Add ` react-native-quick-sqlite ` dependency**
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 66656665 version "0.0.0"
66666666 uid ""
66676667
6668- stream-chat-react-native-core@5.8 .0 :
6669- version "5.8 .0"
6670- resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.8 .0.tgz#650e224be1663be363044bad0f1244582f8c7d4f "
6671- integrity sha512-YhnWeVwdYCpoyFdbYwizDKFWdIU8DgMUduA/mA1tvaSkFRQqFIAoJeIEqd5TeMjQnAPLXvZXkdhqAXy9FjVhjw ==
6668+ stream-chat-react-native-core@5.9 .0 :
6669+ version "5.9 .0"
6670+ resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.9 .0.tgz#a226a1f9d629d1f3e212df1f2a46312c544bc0bb "
6671+ integrity sha512-goG9dyDpVopspGt3gq31ILkwEzdolo0+CdhcpVeGmOB2CZ0tF9X78uByrj4/7VsqpCkC0hi4uMSEsERM3DZdbg ==
66726672 dependencies :
66736673 " @babel/runtime" " ^7.12.5"
66746674 " @gorhom/bottom-sheet" " 4.4.5"
Original file line number Diff line number Diff line change @@ -185,6 +185,7 @@ const DrawerNavigatorWrapper: React.FC<{
185185 < Chat < StreamChatGenerics >
186186 client = { chatClient }
187187 enableOfflineSupport
188+ // @ts -expect-error
188189 ImageComponent = { FastImage }
189190 >
190191 < AppOverlayProvider >
Original file line number Diff line number Diff line change @@ -18,9 +18,11 @@ import { BottomSheetOverlayProvider } from './BottomSheetOverlayContext';
1818import { ChannelInfoOverlayProvider } from './ChannelInfoOverlayContext' ;
1919import { UserInfoOverlayProvider } from './UserInfoOverlayContext' ;
2020
21- export const AppOverlayProvider : React . FC < {
22- value ?: Partial < AppOverlayContextValue > ;
23- } > = ( props ) => {
21+ export const AppOverlayProvider = (
22+ props : React . PropsWithChildren < {
23+ value ?: Partial < AppOverlayContextValue > ;
24+ } > ,
25+ ) => {
2426 const { children, value } = props ;
2527
2628 const [ overlay , setOverlay ] = useState ( value ?. overlay || 'none' ) ;
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ export type UserSearchContextValue = PaginatedUsers;
66
77export const UserSearchContext = React . createContext ( { } as UserSearchContextValue ) ;
88
9- export const UserSearchProvider : React . FC < {
10- value ?: UserSearchContextValue ;
11- } > = ( { children, value } ) => {
9+ export const UserSearchProvider = (
10+ props : React . PropsWithChildren < { value ?: UserSearchContextValue } > ,
11+ ) => {
12+ const { children, value } = props ;
1213 const paginatedUsers = usePaginatedUsers ( ) ;
1314
1415 const userSearchContext = { ...paginatedUsers , ...value } ;
Original file line number Diff line number Diff line change 11931193 resolved "https://registry.yarnpkg.com/@react-native-camera-roll/camera-roll/-/camera-roll-5.2.1.tgz#3cffbe2a368e47f14578bda2b244790a7119f662"
11941194 integrity sha512-axWwlLj/3E5PIjXcN2y2XZzK/hYTx73kDlQJpHpcurejmQR9sU22w3cs+YltaNkZGl3y7Eu/LbiPEkGIwNVQow==
11951195
1196- " @react-native-clipboard/clipboard@^1.11.1 " :
1197- version "1.11.1"
1198- resolved "https://registry.yarnpkg.com/@react-native-clipboard/clipboard/-/clipboard-1.11.1.tgz#d3a9e685ce2383b1e92b89a334896c5575cc103d"
1199- integrity sha512-nvSIIHzybVWqYxcJE5hpT17ekxAAg383Ggzw5WrYHtkKX61N1AwaKSNmXs5xHV7pmKSOe/yWjtSwxIzfW51I5Q==
1200-
12011196" @react-native-community/cli-clean@^9.2.1 " :
12021197 version "9.2.1"
12031198 resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz#198c5dd39c432efb5374582073065ff75d67d018"
76037598 resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4"
76047599 integrity sha512-uyQK/mx5QjHun80FLJTfaWE7JtwfRMKBLkMne6udYOmvH0CawotVa7TfgYHzAnpphn4+TweIx1QKMnRIbipmUg==
76057600
7606- stream-chat-react-native-core@5.8 .0 :
7607- version "5.8 .0"
7608- resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.8 .0.tgz#650e224be1663be363044bad0f1244582f8c7d4f "
7609- integrity sha512-YhnWeVwdYCpoyFdbYwizDKFWdIU8DgMUduA/mA1tvaSkFRQqFIAoJeIEqd5TeMjQnAPLXvZXkdhqAXy9FjVhjw ==
7601+ stream-chat-react-native-core@5.9 .0 :
7602+ version "5.9 .0"
7603+ resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.9 .0.tgz#a226a1f9d629d1f3e212df1f2a46312c544bc0bb "
7604+ integrity sha512-goG9dyDpVopspGt3gq31ILkwEzdolo0+CdhcpVeGmOB2CZ0tF9X78uByrj4/7VsqpCkC0hi4uMSEsERM3DZdbg ==
76107605 dependencies :
76117606 " @babel/runtime" " ^7.12.5"
76127607 " @gorhom/bottom-sheet" " 4.4.5"
Original file line number Diff line number Diff line change 11111111 resolved "https://registry.yarnpkg.com/@react-native-camera-roll/camera-roll/-/camera-roll-5.2.1.tgz#3cffbe2a368e47f14578bda2b244790a7119f662"
11121112 integrity sha512-axWwlLj/3E5PIjXcN2y2XZzK/hYTx73kDlQJpHpcurejmQR9sU22w3cs+YltaNkZGl3y7Eu/LbiPEkGIwNVQow==
11131113
1114- " @react-native-clipboard/clipboard@^1.11.1 " :
1115- version "1.11.1"
1116- resolved "https://registry.yarnpkg.com/@react-native-clipboard/clipboard/-/clipboard-1.11.1.tgz#d3a9e685ce2383b1e92b89a334896c5575cc103d"
1117- integrity sha512-nvSIIHzybVWqYxcJE5hpT17ekxAAg383Ggzw5WrYHtkKX61N1AwaKSNmXs5xHV7pmKSOe/yWjtSwxIzfW51I5Q==
1118-
11191114" @react-native-community/cli-clean@^9.2.1 " :
11201115 version "9.2.1"
11211116 resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-9.2.1.tgz#198c5dd39c432efb5374582073065ff75d67d018"
@@ -7166,10 +7161,10 @@ statuses@~1.5.0:
71667161 resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
71677162 integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
71687163
7169- stream-chat-react-native-core@5.8 .0 :
7170- version "5.8 .0"
7171- resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.8 .0.tgz#650e224be1663be363044bad0f1244582f8c7d4f "
7172- integrity sha512-YhnWeVwdYCpoyFdbYwizDKFWdIU8DgMUduA/mA1tvaSkFRQqFIAoJeIEqd5TeMjQnAPLXvZXkdhqAXy9FjVhjw ==
7164+ stream-chat-react-native-core@5.9 .0 :
7165+ version "5.9 .0"
7166+ resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.9 .0.tgz#a226a1f9d629d1f3e212df1f2a46312c544bc0bb "
7167+ integrity sha512-goG9dyDpVopspGt3gq31ILkwEzdolo0+CdhcpVeGmOB2CZ0tF9X78uByrj4/7VsqpCkC0hi4uMSEsERM3DZdbg ==
71737168 dependencies :
71747169 " @babel/runtime" " ^7.12.5"
71757170 " @gorhom/bottom-sheet" " 4.4.5"
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 2323 "react-native-haptic-feedback" : " >=1.11.0" ,
2424 "react-native-image-crop-picker" : " >=0.33.2" ,
2525 "react-native-image-resizer" : " >=1.4.2" ,
26- "react-native-share" : " >=4.1.0"
26+ "react-native-share" : " >=4.1.0" ,
27+ "@react-native-clipboard/clipboard" : " ^1.11.1"
28+ },
29+ "peerDependenciesMeta" : {
30+ "@react-native-clipboard/clipboard" : {
31+ "optional" : true
32+ }
2733 },
2834 "scripts" : {
2935 "prepack" : " cp ../../README.md ." ,
4147 "react-native-image-crop-picker" : " ^0.38.0" ,
4248 "react-native-image-resizer" : " >=1.4.2" ,
4349 "react-native-share" : " >=4.1.0"
44- },
45- "optionalDependencies" : {
46- "@react-native-clipboard/clipboard" : " ^1.11.1"
4750 }
4851}
You can’t perform that action at this time.
0 commit comments