React Native New Architecture

Starting version 6.0.0 we support the new architecture for the React Native Chat SDK.

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 >=52 for Expo.

Dependencies

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:

DependenciesVersions
@op-engineering/op-sqlite>=9.3.0
@react-native-clipboard/clipboard>=1.14.1
react-native-blob-util>=0.17.0
react-native-document-picker>=9.1.1
react-native-gesture-handler>=2.15.0
react-native-haptic-feedback>=2.2.0
react-native-image-picker>=7.1.1
react-native-reanimated>=3.9.0
react-native-share>=10.0.2
react-native-svg>=15.2.0

Few of the dependencies we rely on are not fully new architecture compatible yet.

  1. react-native-audio-recorder-player and react-native-video work on interop mode.
  2. react-native-document-picker doesn’t support the bridgeless mode. Please use @react-native-documents/picker if you want the bridgeless mode. You can register your own native handler with us using our Native Handler guide.

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.

For expo, make sure you are on the latest version of the dependencies with the current expo version you have.

Known issues and limitations

  • 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.
  • The bottom sheet that we are using from the https://github.com/gorhom/react-native-bottom-sheet library currently has a bug on any 5.X.X version that closes the bottom sheet immediately the very first time it’s opened. This is a known issue for which we have a patch solution for the time being and is documented on this Github issue on the repo. Until this gets fixed upstream within the library, you can feel free to apply the patch and seeing if it resolves the issue. Lower versions than 5.0.6 are not viable for use due to the fact they’re incompatible with react-native-reanimated.

Please feel free to report any issues you face while using the new architecture.

© Getstream.io, Inc. All Rights Reserved.