Skip to content

Commit 02d1c2e

Browse files
committed
chore: update the sample apps
1 parent 02726ed commit 02d1c2e

File tree

6 files changed

+52
-41
lines changed

6 files changed

+52
-41
lines changed

docusaurus/docs/reactnative/guides/new-architecture.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ title: React Native New Architecture
55

66
Starting v6 we support the [new architecture](https://reactnative.dev/architecture/landing-page) for the React Native Chat SDK.
77

8-
To be compatible with the new architecture, it is recommended that you use React Native version `0.75.4` and above.
8+
To be compatible with the new architecture, it is recommended that you use React Native version `0.75.4` and above for React Native CLI and `>=51` for Expo.
99

1010
### Dependencies
1111

12-
We recommend you to be on the following versions or higher of the peer dependencies to be able to run the new architecture:
12+
On Native CLI, we recommend you to be on the following versions or higher of the peer dependencies to be able to run the new architecture:
1313

1414
| Dependencies | Versions |
1515
| ----------------------------------- | ---------- |
@@ -34,6 +34,8 @@ Few of the dependencies we rely on are not fully new architecture compatible yet
3434
Although the above dependencies are not fully compatible with the new architecture, you can still use them in your project. They doesn't stop you from building the app on both iOS and Android.
3535
:::
3636

37+
For expo, make sure you are on the latest version of the dependencies with the current expo version you have.
38+
3739
### Known issues and limitations
3840

3941
- The audio recorder is not fully compatible with the new architecture, so you might face some issues while recording the audio and playing it using `react-native-audio-recorder-player`. We are working on it to fix the issues.

examples/SampleApp/ios/Podfile.lock

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,12 @@ PODS:
157157
- nanopb/decode (2.30910.0)
158158
- nanopb/encode (2.30910.0)
159159
- op-sqlite (9.3.0):
160+
- DoubleConversion
161+
- glog
162+
- hermes-engine
163+
- RCT-Folly (= 2024.01.01.00)
164+
- RCTRequired
165+
- RCTTypeSafety
160166
- React
161167
- React-callinvoker
162168
- React-Core
@@ -2181,7 +2187,7 @@ PODS:
21812187
- libwebp (~> 1.0)
21822188
- SDWebImage/Core (~> 5.10)
21832189
- SocketRocket (0.7.1)
2184-
- stream-chat-react-native (5.39.5):
2190+
- stream-chat-react-native (5.41.2):
21852191
- DoubleConversion
21862192
- glog
21872193
- hermes-engine
@@ -2515,7 +2521,7 @@ SPEC CHECKSUMS:
25152521
hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd
25162522
libwebp: 1786c9f4ff8a279e4dac1e8f385004d5fc253009
25172523
nanopb: 438bc412db1928dac798aa6fd75726007be04262
2518-
op-sqlite: f522405b72bbbdf22ce4d90060ed3bcf874e5b1b
2524+
op-sqlite: 88dd68621bea1e7ea28606f76228a84a23d5ad58
25192525
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
25202526
PromisesSwift: 9d77319bbe72ebf6d872900551f7eeba9bce2851
25212527
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
@@ -2597,9 +2603,9 @@ SPEC CHECKSUMS:
25972603
SDWebImage: a7f831e1a65eb5e285e3fb046a23fcfbf08e696d
25982604
SDWebImageWebPCoder: 908b83b6adda48effe7667cd2b7f78c897e5111d
25992605
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2600-
stream-chat-react-native: fdb094f6ad56bb4bee2a82db43d68a5d44a19782
2606+
stream-chat-react-native: fde9ff0df6796523ef66b7bef2274f0deef8ff19
26012607
Yoga: 83048fe4b4ce15018a5e9ccbf0b06bd76fc643d4
26022608

26032609
PODFILE CHECKSUM: 4f662370295f8f9cee909f1a4c59a614999a209d
26042610

2605-
COCOAPODS: 1.14.3
2611+
COCOAPODS: 1.16.2

examples/SampleApp/ios/SampleApp.xcodeproj/project.pbxproj

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -741,15 +741,21 @@
741741
);
742742
MTL_ENABLE_DEBUG_INFO = YES;
743743
ONLY_ACTIVE_ARCH = YES;
744-
OTHER_CFLAGS = "$(inherited) ";
744+
OTHER_CFLAGS = (
745+
"$(inherited)",
746+
" ",
747+
);
745748
OTHER_CPLUSPLUSFLAGS = (
746749
"$(OTHER_CFLAGS)",
747750
"-DFOLLY_NO_CONFIG",
748751
"-DFOLLY_MOBILE=1",
749752
"-DFOLLY_USE_LIBCPP=1",
750753
"-DFOLLY_CFG_NO_COROUTINES=1",
751754
);
752-
OTHER_LDFLAGS = "$(inherited) ";
755+
OTHER_LDFLAGS = (
756+
"$(inherited)",
757+
" ",
758+
);
753759
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
754760
SDKROOT = iphoneos;
755761
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
@@ -940,15 +946,21 @@
940946
"\"$(inherited)\"",
941947
);
942948
MTL_ENABLE_DEBUG_INFO = NO;
943-
OTHER_CFLAGS = "$(inherited) ";
949+
OTHER_CFLAGS = (
950+
"$(inherited)",
951+
" ",
952+
);
944953
OTHER_CPLUSPLUSFLAGS = (
945954
"$(OTHER_CFLAGS)",
946955
"-DFOLLY_NO_CONFIG",
947956
"-DFOLLY_MOBILE=1",
948957
"-DFOLLY_USE_LIBCPP=1",
949958
"-DFOLLY_CFG_NO_COROUTINES=1",
950959
);
951-
OTHER_LDFLAGS = "$(inherited) ";
960+
OTHER_LDFLAGS = (
961+
"$(inherited)",
962+
" ",
963+
);
952964
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
953965
SDKROOT = iphoneos;
954966
USE_HERMES = true;

examples/SampleApp/yarn.lock

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,13 +2979,6 @@ babel-plugin-syntax-hermes-parser@^0.23.1:
29792979
dependencies:
29802980
hermes-parser "0.23.1"
29812981

2982-
babel-plugin-polyfill-regenerator@^0.6.1:
2983-
version "0.6.2"
2984-
resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.2.tgz#addc47e240edd1da1058ebda03021f382bba785e"
2985-
integrity sha512-2R25rQZWP63nGwaAswvDazbPXfrM3HwVoBXK6HcqeKrSrL/JqcC/rDcf95l4r7LXLyxDXc8uQDa064GubtCABg==
2986-
dependencies:
2987-
"@babel/helper-define-polyfill-provider" "^0.6.2"
2988-
29892982
babel-plugin-transform-flow-enums@^0.0.2:
29902983
version "0.0.2"
29912984
resolved "https://registry.yarnpkg.com/babel-plugin-transform-flow-enums/-/babel-plugin-transform-flow-enums-0.0.2.tgz#d1d0cc9bdc799c850ca110d0ddc9f21b9ec3ef25"
@@ -3417,13 +3410,6 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1:
34173410
dependencies:
34183411
browserslist "^4.24.2"
34193412

3420-
core-js-compat@^3.38.0, core-js-compat@^3.38.1:
3421-
version "3.39.0"
3422-
resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.39.0.tgz#b12dccb495f2601dc860bdbe7b4e3ffa8ba63f61"
3423-
integrity sha512-VgEUx3VwlExr5no0tXlBt+silBvhTryPwCXRI2Id1PN8WTKu7MreethvddqOubrYxkFdv/RnYrqlv1sFNAUelw==
3424-
dependencies:
3425-
browserslist "^4.24.2"
3426-
34273413
core-util-is@~1.0.0:
34283414
version "1.0.3"
34293415
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85"

examples/TypeScriptMessaging/ios/Podfile.lock

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ PODS:
77
- hermes-engine (0.76.1):
88
- hermes-engine/Pre-built (= 0.76.1)
99
- hermes-engine/Pre-built (0.76.1)
10-
- op-sqlite (6.2.11):
10+
- op-sqlite (9.3.0):
1111
- DoubleConversion
1212
- glog
1313
- hermes-engine
@@ -36,6 +36,11 @@ PODS:
3636
- fmt (= 9.1.0)
3737
- glog
3838
- RCT-Folly/Default (= 2024.01.01.00)
39+
- RCT-Folly/Default (2024.01.01.00):
40+
- boost
41+
- DoubleConversion
42+
- fmt (= 9.1.0)
43+
- glog
3944
- RCT-Folly/Fabric (2024.01.01.00):
4045
- boost
4146
- DoubleConversion
@@ -1986,7 +1991,7 @@ PODS:
19861991
- ReactCommon/turbomodule/core
19871992
- Yoga
19881993
- SocketRocket (0.7.1)
1989-
- stream-chat-react-native (5.39.5):
1994+
- stream-chat-react-native (5.41.2):
19901995
- DoubleConversion
19911996
- glog
19921997
- hermes-engine
@@ -2260,14 +2265,14 @@ EXTERNAL SOURCES:
22602265
:path: "../node_modules/react-native/ReactCommon/yoga"
22612266

22622267
SPEC CHECKSUMS:
2263-
boost: 1dca942403ed9342f98334bf4c3621f011aa7946
2268+
boost: 4cb898d0bf20404aab1850c656dcea009429d6c1
22642269
DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
22652270
FBLazyVector: 7075bb12898bc3998fd60f4b7ca422496cc2cdf7
2266-
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
2271+
fmt: 4c2741a687cc09f0634a2e2c72a838b99f1ff120
22672272
glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
22682273
hermes-engine: 46f1ffbf0297f4298862068dd4c274d4ac17a1fd
2269-
op-sqlite: adc7985fa29cdaad3d2c03fbb731a036464fa7f2
2270-
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
2274+
op-sqlite: 88dd68621bea1e7ea28606f76228a84a23d5ad58
2275+
RCT-Folly: 4464f4d875961fce86008d45f4ecf6cef6de0740
22712276
RCTDeprecation: fde92935b3caa6cb65cbff9fbb7d3a9867ffb259
22722277
RCTRequired: 75c6cee42d21c1530a6f204ba32ff57335d19007
22732278
RCTTypeSafety: 7e6fe47bfb693c50d4669db1a480ca5331795f5b
@@ -2339,9 +2344,9 @@ SPEC CHECKSUMS:
23392344
RNShare: 4305edead1b8f614ab994046c68193e8d50aaadc
23402345
RNSVG: 536cd3c866c878faf72beaba166c8b02fe2b762b
23412346
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
2342-
stream-chat-react-native: 2f2f2d0f8751c0469d2e541cd80ce5d6d13b6921
2347+
stream-chat-react-native: 7c7a8400ef22eeb25c79a2763f90bfe4d262c1bb
23432348
Yoga: db69236006b8b1c6d55ab453390c882306cbf219
23442349

23452350
PODFILE CHECKSUM: 6b7a4b74915b42bfe4ffddaf67cbf5e7a2bfeab3
23462351

2347-
COCOAPODS: 1.16.2
2352+
COCOAPODS: 1.14.3

examples/TypeScriptMessaging/yarn.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6807,10 +6807,10 @@ statuses@~1.5.0:
68076807
resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c"
68086808
integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==
68096809

6810-
stream-chat-react-native-core@5.39.5:
6811-
version "5.39.5"
6812-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.39.5.tgz#8a2f587404bc84f1761e180602358a60b46f724b"
6813-
integrity sha512-H0wSnF7PgwepvozXRZs5K9TR9A3mOKMc6hyV+sLtLKW13rqyN11dSuSKorOYzCCkrnasYi+2sXM1dd7Orunbww==
6810+
stream-chat-react-native-core@5.41.2:
6811+
version "5.41.2"
6812+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.41.2.tgz#74fda94b80e28dd542a90abbfeb0291bf97a3d77"
6813+
integrity sha512-mr8yTj7O40w13EvOkhDTJH8OCisdB8f8REeFFt2y2LA2PWkFb5hpI1e5uFMW7XTuL58ftD1jXdF2ug6n4OUDug==
68146814
dependencies:
68156815
"@gorhom/bottom-sheet" "^4.6.4"
68166816
dayjs "1.10.5"
@@ -6823,7 +6823,7 @@ [email protected]:
68236823
path "0.12.7"
68246824
react-native-markdown-package "1.8.2"
68256825
react-native-url-polyfill "^1.3.0"
6826-
stream-chat "8.40.8"
6826+
stream-chat "8.42.0"
68276827

68286828
"stream-chat-react-native-core@link:../../package":
68296829
version "0.0.0"
@@ -6833,10 +6833,10 @@ [email protected]:
68336833
version "0.0.0"
68346834
uid ""
68356835

6836-
stream-chat@8.40.8:
6837-
version "8.40.8"
6838-
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.40.8.tgz#0f5320bd8b03d1cbff377f8c7ae2f8afe24d0515"
6839-
integrity sha512-nYLvYAkrvXRzuPO52TIofNiInCkDdXrnBc/658297lC6hzrHNc87mmTht264BXmXLlpasTNP3rLKxR6MxhpgKg==
6836+
stream-chat@8.42.0:
6837+
version "8.42.0"
6838+
resolved "https://registry.yarnpkg.com/stream-chat/-/stream-chat-8.42.0.tgz#124ea2c10c6e8f7990304e1101c66751daf63e6c"
6839+
integrity sha512-8xZz+fmdHSOa3L1rHUOC4Wah+ipvLvdiOmeOfGK6uXnLOKlSHMOblwmQErrOoFM4SKfX9Bea3V8viaKUu6bPng==
68406840
dependencies:
68416841
"@babel/runtime" "^7.16.3"
68426842
"@types/jsonwebtoken" "~9.0.0"

0 commit comments

Comments
 (0)