Expo SDK 46 ships React Native 0.69, Skia, FlashList support
Expo has released SDK 46, which includes React Native 0.69.3 and therefore React 18. Expo notes that the New Architecture is not yet recommended for most developers, since Expo module view managers and most ecosystem libraries do not support it yet.
Expo Go for Android with SDK 46 support was still in Google Play review at release time. Until it lands, npx create-expo-app defaults to SDK 45; a new SDK 46 project can be created with npx create-expo-app --template blank@sdk-46. The APK can also be installed directly.
Highlights
- React Native Skia is now supported in Expo Go and on web, providing a React API for the Skia 2D graphics library.
- FlashList is now supported in Expo Go and on web. It is a drop-in replacement for
FlatListthat recycles views to improve FPS and memory usage. - React Native Web 0.18 includes breaking changes. For example, inline styles are no longer automatically vendor-prefixed; Expo recommends using
StyleSheet.createinstead. - vscode-expo now offers autocomplete and validation for
eas.json,store.config.jsonandexpo-module.config.json, in addition to app config files.
New local Expo CLI
The Expo CLI has been rewritten and now lives locally in each project rather than being installed globally. Smaller commands moved into standalone packages such as create-expo-app, while commands interacting with Expo servers and EAS moved into eas-cli. Additions include PNPM support and a --fix flag for expo install that installs correct dependency versions.
Run the local CLI with npx expo start or yarn expo. The legacy global CLI is invoked as expo-cli, and is still needed for expo-cli upgrade, expo-cli doctor, and expo-cli publish for projects still on Classic Updates. Setting EXPO_USE_LOCAL_CLI to 0 temporarily opts out.
Development Builds and EAS Update
expo-dev-client has reached 1.0.0 and is considered stable. It adds an API for custom development menu extensions, an API to detect whether the app runs inside a Development Build, and improved EAS Update integration. EAS customers can migrate from Classic Updates to EAS Update now.
Removals and support changes
expo-ads-admob,expo-analytics-amplitude,expo-ads-facebook,expo-facebook,expo-google-sign-inandexpo-segmenthave been removed from Expo Go and Classic Builds.- The Web UI for Expo CLI is gone in
expo-cli@6.0.0. - The blank template no longer includes
react-native-web,react-domand@expo/webpack-config; they must be installed to run on web. - SDK 43 is dropped from Expo Go; SDK 44 will be dropped next release.
- iOS 12.4 is now the minimum; iOS 12 support ends in SDK 47.
SDK 46 is also the final SDK supported by Classic Builds (expo build:ios, expo build:android), with Classic Build support arriving about two weeks after release. SDK 47, expected in the fall with iOS 16 support, will require EAS Build or local builds. The Classic Build service ends with 2022.
Upgrading
For managed projects, install npm i -g expo-cli (6.0.0 or later recommended) and npm i -g eas-cli, then run expo-cli upgrade followed by expo-cli doctor. Development clients and standalone apps need new builds. Bare projects require Xcode 13.3 or later and should apply changes from the React Native Upgrade Helper.
Links
Source: web.archive.org