Skip to content

Commit f2cd8ed

Browse files
authored
Merge pull request #2085 from GetStream/develop
Next release
2 parents c417f04 + 30f8e5d commit f2cd8ed

File tree

157 files changed

+5659
-10030
lines changed

Some content is hidden

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

157 files changed

+5659
-10030
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ A clear and concise description of what the bug is.
2828
- Package version (stream-chat-react-native/stream-chat-expo)
2929
- react-native or expo version
3030
- Device/Emulator (android/ios) and OS version
31+
- Offline support enabled (yes/no)
3132

3233
**To Reproduce**
3334
Steps to reproduce the behavior:

.github/workflows/docusaurus.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ on:
55
branches:
66
- main # default branch name for each repo that docs should be push from
77
- develop
8-
paths:
9-
- docusaurus/**
108
env:
119
branch_map: '{"refs/heads/main": "production", "refs/heads/develop": "staging"}'
1210
jobs:

.github/workflows/sample-distribution.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
name: sample-distribution
22

3-
on:
4-
push:
5-
branches:
6-
- develop
7-
83
concurrency:
9-
group: sample-distribution
4+
group: sample-distribution-${{ github.ref }}
105
cancel-in-progress: true
116

7+
on:
8+
push:
9+
paths:
10+
- '.github/workflows/sample-distribution.yml'
11+
- 'package/**'
12+
- 'packages/examples/SampleApp/**'
13+
1214
jobs:
1315
build_and_deploy_ios_testflight_qa:
14-
runs-on: [macos-latest]
16+
name: Build SampleApp iOS and Deploy-${{ github.ref == 'refs/heads/develop' }}
17+
runs-on: [macos-12]
1518
steps:
1619
- uses: actions/checkout@v2
1720
with:
@@ -48,9 +51,10 @@ jobs:
4851
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
4952
run: |
5053
cd examples/SampleApp
51-
bundle exec fastlane deploy_to_testflight_qa
54+
bundle exec fastlane deploy_to_testflight_qa deploy:${{ github.ref == 'refs/heads/develop' }};
5255
5356
build_and_deploy_android_s3:
57+
name: Build SampleApp Android and Deploy-${{ github.ref == 'refs/heads/develop' }}
5458
runs-on: ubuntu-latest
5559
steps:
5660
- uses: actions/checkout@v2
@@ -72,11 +76,13 @@ jobs:
7276
7377
- name: Configure AWS credentials
7478
uses: aws-actions/configure-aws-credentials@v1
79+
if: ${{ github.ref == 'refs/heads/develop' }}
7580
with:
7681
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
7782
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7883
aws-region: us-east-1
7984
- name: Upload APK
85+
if: ${{ github.ref == 'refs/heads/develop' }}
8086
# https://getstream.io/downloads/rn-sample-app.apk
8187
run: |
8288
cp examples/SampleApp/android/app/build/outputs/apk/release/app-release.apk rn-sample-app.apk

.styles/Vocab/Base/accept.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ serializable
2222
Upserts
2323
Unsets
2424
SDK's
25+
SDKs
2526
Worklet
2627
aiba
2728
(nl)
@@ -38,3 +39,4 @@ performant
3839
virtualized
3940
rncli
4041
RNCLI
42+
CDNs

docusaurus/docs/reactnative/basics/getting_started.mdx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,18 @@ For RNCLI, on iOS on a Mac install the pods `npx pod-install ios`.
115115

116116
To be able to use the Stream Chat React Native SDK, a few dependencies must meet the following version requirements:
117117

118-
| react-native | stream-chat-react-native/stream-chat-expo (min required) | react-native-reanimated (min required) |
119-
| ------------ | -------------------------------------------------------- | -------------------------------------- |
120-
| 0.70 | 5.3.1 | 2.10.0 |
121-
| 0.69 | 4.13.0 | 2.9.1 |
122-
| 0.68 | 4.11.0 | 2.7.0 |
123-
| 0.67 | 4.2.0 | 2.4.0 |
124-
| 0.66 | 3.9.0 | 2.2.3 |
125-
| 0.65 | 3.9.0 | 2.2.1 |
126-
| 0.64 | 3.6.2 | 2.2.0 |
127-
| 0.63 | 3.0.0 | 2.2.0 |
118+
| react-native | stream-chat-react-native/stream-chat-expo (min required) | react-native-reanimated (min required) | react-native-quick-sqlite (min required) |
119+
| ------------ | -------------------------------------------------------- | -------------------------------------- | ---------------------------------------- |
120+
| 0.71 | 5.14.0 | 2.13.0 | 8.0.2 |
121+
| 0.70 | 5.6.1 | 2.10.0 | 5.1.0 |
122+
| 0.70 | 5.3.1 | 2.10.0 | 4.0.0 |
123+
| 0.69 | 4.13.0 | 2.9.1 | N/A |
124+
| 0.68 | 4.11.0 | 2.7.0 | N/A |
125+
| 0.67 | 4.2.0 | 2.4.0 | N/A |
126+
| 0.66 | 3.9.0 | 2.2.3 | N/A |
127+
| 0.65 | 3.9.0 | 2.2.1 | N/A |
128+
| 0.64 | 3.6.2 | 2.2.0 | N/A |
129+
| 0.63 | 3.0.0 | 2.2.0 | N/A |
128130

129131
#### Platform compatibilities
130132

@@ -151,7 +153,7 @@ For some of the packages listed below, there are additional steps required to se
151153

152154
- `react-native-gesture-handler` - [additional installation steps](https://docs.swmansion.com/react-native-gesture-handler/docs/#android)
153155

154-
RNGH requires the package to be imported at the **top of the entry file** before anything else, this is usually your `App.js` or `index.js` file.
156+
RNGH requires the package to be imported at the **top of the entry file** before anything else, this is usually your `App.tsx` or `index.js` file.
155157

156158
```tsx
157159
import 'react-native-gesture-handler';

docusaurus/docs/reactnative/basics/offline_support.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ React Native Chat SDK provides OOTB support for offline mode, which means user w
88
with chat even when the network is off. This is an opt-in feature that needs to be explicitly enabled on application
99
level.
1010

11-
> Offline support is currently not implemented for Expo package (stream-chat-expo).
11+
> Integration with Expo is possible using the [expo-dev-client](https://docs.expo.dev/development/getting-started/) library.
12+
> Offline support cannot be used in the "Expo Go" app, because [it requires custom native code](https://docs.expo.io/workflow/customizing/).
1213
1314
## Features
1415

docusaurus/docs/reactnative/basics/troubleshooting.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,13 @@ Reanimated plugin has to be listed last.
351351
352352
### Blank screen on Android
353353
354+
:::caution
355+
356+
This step is only required for older version of (Reanimated 2).
357+
If you are using version >=3.0.0, you can skip this step.
358+
359+
:::
360+
354361
If you are encountering errors on Android and the screen is blank it is likely you forgot to finish the [Reanimated 2 Android setup](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/#android).
355362
356363
Ensure Hermes is enabled in `android/app/build.gradle`:
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
id: global_config
3+
sidebar_position: 6
4+
title: Global Config
5+
---
6+
7+
The core of Stream Chat for React Native is it's ability to be customized to your needs.
8+
The new `Global Config` feature allows you to enable and disable features of the library and alter the default behavior of the SDK.
9+
10+
We will be gradually adding more features/options to the global config.
11+
In the future this will be the main way to alter the default behavior of the SDK and it's components.
12+
13+
## When to use a Global Configt
14+
15+
When you want to alter the default behavior of the SDK or it's components.
16+
Please check the available options below to see if there is a config option that fits your needs.
17+
18+
## How to use and alter the global config
19+
20+
Altering the global config can be done by calling the `setConfig` function on the `StreamChatRN` object.
21+
Make sure to call this function before any other components are rendered at the root of your application (App.tsx in most cases).
22+
23+
```tsx
24+
import { StreamChatRN } from 'stream-chat-react-native';
25+
26+
StreamChatRN.setConfig({
27+
resizableCDNHosts: ['https://my-company-cdn.com'],
28+
// future config options
29+
});
30+
```
31+
32+
## Available config features/Options
33+
34+
### `resizableCDNHosts`
35+
36+
This option allows you to specify a list of CDNs that offer image resizing.
37+
38+
| Type | Default |
39+
| ---------- | ------------------------ |
40+
| `string[]` | `['.stream-io-cdn.com']` |

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ To be able to use the Stream Chat React Native SDK, a few dependencies must meet
108108

109109
:::info
110110

111-
`react-native-gesture-handler` requires the package to be imported at the **top of the entry file** before anything else, this is usually your `App.js` or `index.js` file.
111+
`react-native-gesture-handler` requires the package to be imported at the **top of the entry file** before anything else, this is usually your `App.tsx` or `index.js` file.
112112

113113
<br />
114114

docusaurus/reactnative_versioned_docs/version-3.x.x/guides/upgrade_helper.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ AppRegistry.registerComponent(appName, () => App);
7070

7171
#### Import gesture handler dependency
7272

73-
v3 requires you to import the gesture handler dependency at the top of your application's entry file (usually your App.js or index.js) before any other dependencies:
73+
v3 requires you to import the gesture handler dependency at the top of your application's entry file (usually your App.tsx or index.js) before any other dependencies:
7474

7575
```tsx {1}
7676
import 'react-native-gesture-handler';

0 commit comments

Comments
 (0)