[3.0.0-beta.2] 2021-02-17
Pre-releasePlease find detailed docs about this release in our wiki
Version 3.x is a major revamp of the SDK and comes with many breaking changes. The new implementation takes advantage of React Context along with many popular community libraries such as Reanimated V2 to deliver a superior chat experience. Upgrading will require re-implementing your integration but will yield performance and functional benefits. It is highly recommended you read the Cookbook and examine the SampleApp / TypeScriptMessaging apps before upgrading to understand what is required.
NOTE: As of release expo is on version 40 which uses a version of React Native with a bug in the Dimensions API that occurs upon reloading an app in the simulator. Version 3.x uses relative sizing widely and depends on this API so issues will be visible in Expo until they update the custom React Native version they ship.
-
Added peer dependencies for:
- BlurView using one of these
- Expo: expo-blur
- React Native: @react-native-community/blur
- Image Compression using one of these
- Expo: expo-image-manipulator
- React Native: react-native-image-resizer
- FileSystem using one of these
- Expo: expo-file-system
- React Native: react-native-fs
- Share using one of these
- Expo expo-sharing
- React Native: react-native-share
- Image Picking using one of these
- Expo expo-media-library
- React Native: react-native-cameraroll
- react-native-gesture-handler
- react-native-reanimated v2
- react-native-svg
- BlurView using one of these
-
Removed peer dependencies for:
-
Removed seamless-immutable
-
Removed styled-components:
- Removed dot notation for theming applications
- Removed css string notation for styles on theme
- Added displayName to components with bracket notation denoting the theme path e.g.
MessageStatus.displayName = 'MessageStatus{message{status}}';indicates the theme path would be modified viaconst customTheme: DeepPartial<Theme> = { message: { status: { ...customizations } } }.