Skip to content

Commit 2a9640b

Browse files
authored
Merge pull request #2049 from GetStream/develop
Next release
2 parents eb909b9 + 3da078c commit 2a9640b

File tree

51 files changed

+4025
-4646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4025
-4646
lines changed

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,23 +124,21 @@ Add the `NSPhotoLibraryAddUsageDescription` key in your `Info.plist` with a desc
124124

125125
### Android
126126

127-
The standard storage permissions are required for the image picker to work on Android, and must be included in the `AndroidManifest.xml` file.
127+
The following permissions are required for the image picker to work on Android, and must be included in the `AndroidManifest.xml` file.
128128

129129
```xml
130-
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
131-
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
130+
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
131+
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
132+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
133+
android:maxSdkVersion="32" />
134+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
132135
```
133136

134-
In addition, and often overlooked, within the `application` tag you must included the `requestLegacyExternalStorage` attribute.
137+
:::note
135138

136-
```xml
137-
<application
138-
android:requestLegacyExternalStorage="true"
139-
...
140-
/>
141-
```
139+
If your Android app is using targetSdkVersion of 33 or above. We expect that you are using React Native version 0.71 or above to ask for the media permissions instead of storage permissions. Please ensure that your app has this combination.
142140

143-
Without this some Android devices will fail to load images despite permissions being granted within the settings.
141+
:::
144142

145143
## Camera not working
146144

docusaurus/docs/reactnative/guides/performance_guide.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,9 @@ So it's recommended to only use this prop in case you don't render message avata
8686
Animations (using reanimated hooks) or gesture handlers such as PanGestureHandler or TapGestureHandler on dynamic list items (such as MessageList),
8787
have known to a cause memory leak. So we would recommend not to add any animations or gesture handlers as part of custom
8888
message component to avoid any performance issue.
89+
90+
### Usage of ChannelContext within Customized Components
91+
92+
The [ChannelContext](../contexts/channel_context.mdx) is a React Context that provides a set of useful methods and data to its children.
93+
Yet when used in a message level, or anywhere deeper in the element tree (For example: in a custom component) it might cause unnecessary re-renders of the message list.
94+
More information can be found in the [Performance Section](../../customization/custom_components/#performance) of how to customize our components.

examples/ExpoMessaging/android/build.gradle

Lines changed: 8 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,64 +2,20 @@
22

33
buildscript {
44
ext {
5-
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '31.0.0'
6-
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21')
7-
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '31')
8-
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '31')
9-
if (findProperty('android.kotlinVersion')) {
10-
kotlinVersion = findProperty('android.kotlinVersion')
11-
}
12-
frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'
5+
buildToolsVersion = "33.0.0"
6+
minSdkVersion = 21
7+
compileSdkVersion = 33
8+
targetSdkVersion = 33
139

14-
if (System.properties['os.arch'] == 'aarch64') {
15-
// For M1 Users we need to use the NDK 24 which added support for aarch64
16-
ndkVersion = '24.0.8215888'
17-
} else {
18-
// Otherwise we default to the side-by-side NDK version from AGP.
19-
ndkVersion = '21.4.7075529'
20-
}
10+
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
11+
ndkVersion = "23.1.7779620"
2112
}
2213
repositories {
2314
google()
2415
mavenCentral()
2516
}
2617
dependencies {
27-
classpath('com.android.tools.build:gradle:7.2.1')
28-
classpath('com.facebook.react:react-native-gradle-plugin')
29-
classpath('de.undercouch:gradle-download-task:5.0.1')
30-
// NOTE: Do not place your application dependencies here; they belong
31-
// in the individual module build.gradle files
32-
}
33-
}
34-
35-
def REACT_NATIVE_VERSION = new File(['node', '--print', "JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
36-
37-
allprojects {
38-
configurations.all {
39-
resolutionStrategy {
40-
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
41-
}
42-
}
43-
44-
repositories {
45-
mavenLocal()
46-
maven {
47-
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
48-
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
49-
}
50-
maven {
51-
// Android JSC is installed from npm
52-
url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
53-
}
54-
55-
google()
56-
mavenCentral {
57-
// We don't want to fetch react-native from Maven Central as there are
58-
// older versions over there.
59-
content {
60-
excludeGroup 'com.facebook.react'
61-
}
62-
}
63-
maven { url 'https://www.jitpack.io' }
18+
classpath("com.android.tools.build:gradle:7.3.1")
19+
classpath("com.facebook.react:react-native-gradle-plugin")
6420
}
6521
}

examples/ExpoMessaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"expo-status-bar": "~1.4.2",
2424
"react": "18.1.0",
2525
"react-dom": "18.1.0",
26-
"react-native": "0.70.5",
26+
"react-native": "0.70.8",
2727
"react-native-gesture-handler": "~2.8.0",
2828
"react-native-reanimated": "~2.12.0",
2929
"react-native-safe-area-context": "4.4.1",

examples/ExpoMessaging/yarn.lock

Lines changed: 29 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,19 +1441,12 @@
14411441
dependencies:
14421442
"@hapi/hoek" "^9.0.0"
14431443

1444-
"@jest/create-cache-key-function@^29.0.3":
1445-
version "29.5.0"
1446-
resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-29.5.0.tgz#24e019d03e634be4affe8bcee787d75a36ae57a2"
1447-
integrity sha512-LIDZyZgnZss7uikvBKBB/USWwG+GO8+GnwRWT+YkCGDGsqLQlhm9BC3z6+7+eMs1kUlvXQIWEzBR8Q2Pnvx6lg==
1448-
dependencies:
1449-
"@jest/types" "^29.5.0"
1450-
1451-
"@jest/schemas@^29.4.3":
1452-
version "29.4.3"
1453-
resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.4.3.tgz#39cf1b8469afc40b6f5a2baaa146e332c4151788"
1454-
integrity sha512-VLYKXQmtmuEz6IxJsrZwzG9NvtkQsWNnWMsKxqWNu3+CnfzJQhp0WDDKWLVV9hLKr0l3SLLFRqcYHjhtyuDVxg==
1444+
"@jest/create-cache-key-function@^27.0.1":
1445+
version "27.5.1"
1446+
resolved "https://registry.yarnpkg.com/@jest/create-cache-key-function/-/create-cache-key-function-27.5.1.tgz#7448fae15602ea95c828f5eceed35c202a820b31"
1447+
integrity sha512-dmH1yW+makpTSURTy8VzdUwFnfQh1G8R+DxO2Ho2FFmBbKFEVm+3jWdvFhE2VqB/LATCTokkP0dotjyQyw5/AQ==
14551448
dependencies:
1456-
"@sinclair/typebox" "^0.25.16"
1449+
"@jest/types" "^27.5.1"
14571450

14581451
"@jest/types@^26.6.2":
14591452
version "26.6.2"
@@ -1477,18 +1470,6 @@
14771470
"@types/yargs" "^16.0.0"
14781471
chalk "^4.0.0"
14791472

1480-
"@jest/types@^29.5.0":
1481-
version "29.5.0"
1482-
resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.5.0.tgz#f59ef9b031ced83047c67032700d8c807d6e1593"
1483-
integrity sha512-qbu7kN6czmVRc3xWFQcAN03RAUamgppVUdXrvl1Wr3jlNF93o9mJbGcDWrwGB6ht44u7efB1qCFgVQmca24Uog==
1484-
dependencies:
1485-
"@jest/schemas" "^29.4.3"
1486-
"@types/istanbul-lib-coverage" "^2.0.0"
1487-
"@types/istanbul-reports" "^3.0.0"
1488-
"@types/node" "*"
1489-
"@types/yargs" "^17.0.8"
1490-
chalk "^4.0.0"
1491-
14921473
"@jridgewell/gen-mapping@^0.1.0":
14931474
version "0.1.1"
14941475
resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996"
@@ -1594,7 +1575,7 @@
15941575
dependencies:
15951576
serve-static "^1.13.1"
15961577

1597-
"@react-native-community/cli-doctor@^9.2.1":
1578+
"@react-native-community/cli-doctor@^9.3.0":
15981579
version "9.3.0"
15991580
resolved "https://registry.yarnpkg.com/@react-native-community/cli-doctor/-/cli-doctor-9.3.0.tgz#8817a3fd564453467def5b5bc8aecdc4205eff50"
16001581
integrity sha512-/fiuG2eDGC2/OrXMOWI5ifq4X1gdYTQhvW2m0TT5Lk1LuFiZsbTCp1lR+XILKekuTvmYNjEGdVpeDpdIWlXdEA==
@@ -1616,7 +1597,7 @@
16161597
sudo-prompt "^9.0.0"
16171598
wcwidth "^1.0.1"
16181599

1619-
"@react-native-community/cli-hermes@^9.2.1":
1600+
"@react-native-community/cli-hermes@^9.3.1":
16201601
version "9.3.1"
16211602
resolved "https://registry.yarnpkg.com/@react-native-community/cli-hermes/-/cli-hermes-9.3.1.tgz#569d27c1effd684ba451ad4614e29a99228cec49"
16221603
integrity sha512-Mq4PK8m5YqIdaVq5IdRfp4qK09aVO+aiCtd6vjzjNUgk1+1X5cgUqV6L65h4N+TFJYJHcp2AnB+ik1FAYXvYPQ==
@@ -1627,20 +1608,7 @@
16271608
hermes-profile-transformer "^0.0.6"
16281609
ip "^1.1.5"
16291610

1630-
"@react-native-community/[email protected]":
1631-
version "9.2.1"
1632-
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.2.1.tgz#cd73cb6bbaeb478cafbed10bd12dfc01b484d488"
1633-
integrity sha512-VamCZ8nido3Q3Orhj6pBIx48itORNPLJ7iTfy3nucD1qISEDih3DOzCaQCtmqdEBgUkNkNl0O+cKgq5A3th3Zg==
1634-
dependencies:
1635-
"@react-native-community/cli-tools" "^9.2.1"
1636-
chalk "^4.1.2"
1637-
execa "^1.0.0"
1638-
fs-extra "^8.1.0"
1639-
glob "^7.1.3"
1640-
logkitty "^0.7.1"
1641-
slash "^3.0.0"
1642-
1643-
"@react-native-community/cli-platform-android@^9.3.1":
1611+
"@react-native-community/[email protected]", "@react-native-community/cli-platform-android@^9.3.1":
16441612
version "9.3.1"
16451613
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-9.3.1.tgz#378cd72249653cc74672094400657139f21bafb8"
16461614
integrity sha512-m0bQ6Twewl7OEZoVf79I2GZmsDqh+Gh0bxfxWgwxobsKDxLx8/RNItAo1lVtTCgzuCR75cX4EEO8idIF9jYhew==
@@ -1653,18 +1621,7 @@
16531621
logkitty "^0.7.1"
16541622
slash "^3.0.0"
16551623

1656-
"@react-native-community/[email protected]":
1657-
version "9.2.1"
1658-
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.2.1.tgz#d90740472216ffae5527dfc5f49063ede18a621f"
1659-
integrity sha512-dEgvkI6CFgPk3vs8IOR0toKVUjIFwe4AsXFvWWJL5qhrIzW9E5Owi0zPkSvzXsMlfYMbVX0COfVIK539ZxguSg==
1660-
dependencies:
1661-
"@react-native-community/cli-tools" "^9.2.1"
1662-
chalk "^4.1.2"
1663-
execa "^1.0.0"
1664-
glob "^7.1.3"
1665-
ora "^5.4.1"
1666-
1667-
"@react-native-community/cli-platform-ios@^9.3.0":
1624+
"@react-native-community/[email protected]", "@react-native-community/cli-platform-ios@^9.3.0":
16681625
version "9.3.0"
16691626
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-ios/-/cli-platform-ios-9.3.0.tgz#45abde2a395fddd7cf71e8b746c1dc1ee2260f9a"
16701627
integrity sha512-nihTX53BhF2Q8p4B67oG3RGe1XwggoGBrMb6vXdcu2aN0WeXJOXdBLgR900DAA1O8g7oy1Sudu6we+JsVTKnjw==
@@ -1728,16 +1685,16 @@
17281685
dependencies:
17291686
joi "^17.2.1"
17301687

1731-
"@react-native-community/cli@9.2.1":
1732-
version "9.2.1"
1733-
resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-9.2.1.tgz#15cc32531fc323d4232d57b1f2d7c571816305ac"
1734-
integrity sha512-feMYS5WXXKF4TSWnCXozHxtWq36smyhGaENXlkiRESfYZ1mnCUlPfOanNCAvNvBqdyh9d4o0HxhYKX1g9l6DCQ==
1688+
"@react-native-community/cli@9.3.2":
1689+
version "9.3.2"
1690+
resolved "https://registry.yarnpkg.com/@react-native-community/cli/-/cli-9.3.2.tgz#81761880af00c1894d85380d8c9a358659865204"
1691+
integrity sha512-IAW4X0vmX/xozNpp/JVZaX7MrC85KV0OP2DF4o7lNGOfpUhzJAEWqTfkxFYS+VsRjZHDve4wSTiGIuXwE7FG1w==
17351692
dependencies:
17361693
"@react-native-community/cli-clean" "^9.2.1"
17371694
"@react-native-community/cli-config" "^9.2.1"
17381695
"@react-native-community/cli-debugger-ui" "^9.0.0"
1739-
"@react-native-community/cli-doctor" "^9.2.1"
1740-
"@react-native-community/cli-hermes" "^9.2.1"
1696+
"@react-native-community/cli-doctor" "^9.3.0"
1697+
"@react-native-community/cli-hermes" "^9.3.1"
17411698
"@react-native-community/cli-plugin-metro" "^9.2.1"
17421699
"@react-native-community/cli-server-api" "^9.2.1"
17431700
"@react-native-community/cli-tools" "^9.2.1"
@@ -1849,11 +1806,6 @@
18491806
resolved "https://registry.yarnpkg.com/@sideway/pinpoint/-/pinpoint-2.0.0.tgz#cff8ffadc372ad29fd3f78277aeb29e632cc70df"
18501807
integrity sha512-RNiOoTPkptFtSVzQevY/yWtZwf/RxyVnPy/OcA9HBM3MlGDnBEYL5B41H0MTn0Uec8Hi+2qUtTfG2WWZBmMejQ==
18511808

1852-
"@sinclair/typebox@^0.25.16":
1853-
version "0.25.24"
1854-
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718"
1855-
integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==
1856-
18571809
"@types/hammerjs@^2.0.36":
18581810
version "2.0.41"
18591811
resolved "https://registry.yarnpkg.com/@types/hammerjs/-/hammerjs-2.0.41.tgz#f6ecf57d1b12d2befcce00e928a6a097c22980aa"
@@ -1952,13 +1904,6 @@
19521904
dependencies:
19531905
"@types/yargs-parser" "*"
19541906

1955-
"@types/yargs@^17.0.8":
1956-
version "17.0.23"
1957-
resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.23.tgz#a7db3a2062c95ca1a5e0d5d5ddb6521cbc649e35"
1958-
integrity sha512-yuogunc04OnzGQCrfHx+Kk883Q4X0aSwmYZhKjI21m+SVYzjIbrWl8dOOwSv5hf2Um2pdCOXWo9isteZTNXUZQ==
1959-
dependencies:
1960-
"@types/yargs-parser" "*"
1961-
19621907
19631908
version "2.3.6"
19641909
resolved "https://registry.yarnpkg.com/@urql/core/-/core-2.3.6.tgz#ee0a6f8fde02251e9560c5f17dce5cd90f948552"
@@ -5759,7 +5704,7 @@ promise@^7.1.1:
57595704
dependencies:
57605705
asap "~2.0.3"
57615706

5762-
promise@^8.0.3:
5707+
promise@^8.3.0:
57635708
version "8.3.0"
57645709
resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a"
57655710
integrity sha512-rZPNPKTOYVNEEKFaq1HqTgOwZD+4/YHS5ukLzQCypkj+OkYx7iv0mA91lJlpPPZ8vMau3IIGj5Qlwrx+8iiSmg==
@@ -5985,15 +5930,15 @@ react-native-web@~0.18.7:
59855930
postcss-value-parser "^4.2.0"
59865931
styleq "^0.1.2"
59875932

5988-
5989-
version "0.70.5"
5990-
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.70.5.tgz#f60540b21d338891086e0a834e331c124dd1f55c"
5991-
integrity sha512-5NZM80LC3L+TIgQX/09yiyy48S73wMgpIgN5cCv3XTMR394+KpDI3rBZGH4aIgWWuwijz31YYVF5504+9n2Zfw==
5933+
5934+
version "0.70.8"
5935+
resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.70.8.tgz#aa9aae8e6291589908db74fe69e0ec1d9a9c5490"
5936+
integrity sha512-O3ONJed9W/VEEVWsbZcwyMDhnEvw7v9l9enqWqgbSGLzHfh6HeIGMCNmjz+kRsHnC7AiF47fupWfgYX7hNnhoQ==
59925937
dependencies:
5993-
"@jest/create-cache-key-function" "^29.0.3"
5994-
"@react-native-community/cli" "9.2.1"
5995-
"@react-native-community/cli-platform-android" "9.2.1"
5996-
"@react-native-community/cli-platform-ios" "9.2.1"
5938+
"@jest/create-cache-key-function" "^27.0.1"
5939+
"@react-native-community/cli" "9.3.2"
5940+
"@react-native-community/cli-platform-android" "9.3.1"
5941+
"@react-native-community/cli-platform-ios" "9.3.0"
59975942
"@react-native/assets" "1.0.0"
59985943
"@react-native/normalize-color" "2.0.0"
59995944
"@react-native/polyfills" "2.0.0"
@@ -6010,7 +5955,7 @@ [email protected]:
60105955
mkdirp "^0.5.1"
60115956
nullthrows "^1.1.1"
60125957
pretty-format "^26.5.2"
6013-
promise "^8.0.3"
5958+
promise "^8.3.0"
60145959
react-devtools-core "4.24.0"
60155960
react-native-codegen "^0.70.6"
60165961
react-native-gradle-plugin "^0.70.3"
@@ -6649,10 +6594,10 @@ [email protected]:
66496594
version "0.0.0"
66506595
uid ""
66516596

6652-
6653-
version "5.12.0"
6654-
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.12.0.tgz#84fed9d65a24b4a92daa6793ac218078d56abdf1"
6655-
integrity sha512-CJ5gdf4mT+io44cWXkT2wy1kLnyzY05AFdGe2i+KBk4fqubpRpl1MFbgvnAjkcrwvMHnvh131tMxWzOlKkqkkw==
6597+
6598+
version "5.12.1"
6599+
resolved "https://registry.yarnpkg.com/stream-chat-react-native-core/-/stream-chat-react-native-core-5.12.1.tgz#cd2b803ee0aa140164b827ca6dfd9f47e4435550"
6600+
integrity sha512-lRtyzFuAGJzZcHIJLbnJ0fp9qUQjVN6WBFhQFX9r9P78GAEj8B8WA6svR1O95YxSgf/IJj9qVyEqYQzorT5o5Q==
66566601
dependencies:
66576602
"@babel/runtime" "^7.12.5"
66586603
"@gorhom/bottom-sheet" "4.4.5"

0 commit comments

Comments
 (0)