Skip to content

Commit be16a66

Browse files
committed
docs: add new architecture guide docs
1 parent 938bf4c commit be16a66

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
id: new-architecture
3+
title: React Native New Architecture
4+
---
5+
6+
Starting v6 we support the [new architecture](https://reactnative.dev/architecture/landing-page) for the React Native Chat SDK.
7+
8+
### Dependencies
9+
10+
We recommend you to be on the following versions or higher of the peer dependencies to be able to run the new architecture:
11+
12+
| Dependencies | Versions |
13+
| ----------------------------------- | ---------- |
14+
| `@op-engineering/op-sqlite` | `>=9.3.0` |
15+
| `@react-native-clipboard/clipboard` | `>=1.4.1` |
16+
| `react-native-blob-util` | `>=0.17.0` |
17+
| `react-native-document-picker` | `>=9.1.1` |
18+
| `react-native-gesture-handler` | `>=2.15.0` |
19+
| `react-native-haptic-feedback` | `>=2.2.0` |
20+
| `react-native-image-picker` | `>=7.1.1` |
21+
| `react-native-reanimated` | `>=3.9.0` |
22+
| `react-native-share` | `>=10.0.2` |
23+
| `react-native-svg` | `>=15.2.0` |
24+
25+
Few of the dependencies we rely on are not fully new architecture compatible yet.
26+
27+
1. `react-native-audio-recorder-player` and `react-native-video` are not compatible with the new architecture.
28+
2. `react-native-document-picker` is not fully compatible with the new architecture as it doesn't support the bridgeless mode. Please use [`@react-native-documents/picker`](https://react-native-documents.github.io/docs/sponsor-only/intro) if you want the bridgeless mode.
29+
30+
:::note
31+
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.
32+
:::
33+
34+
### Known issues and limitations
35+
36+
- The cameraroll is not compatible with the image resizer on new architecture, so we suggest using native image picker for now. You can read [the guide](./native-image-picker.mdx) here.
37+
- The audio recorder is not 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.
38+
- The image gallery animations behaves differently and seem to be a bit laggy on the new architecture specially when you use the pan gesture to drag down the image. We are working on it to fix the issues.
39+
40+
Please feel free to report any issues you face while using the new architecture.

docusaurus/sidebars-react-native.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@
156156
"Advanced Guides": [
157157
"guides/audio-messages-support",
158158
"guides/date-time-formatting",
159+
"guides/new-architecture",
159160
"guides/native-image-picker",
160161
"customization/typescript",
161162
"basics/troubleshooting",

0 commit comments

Comments
 (0)