Expo SDK 49 ships with React Native 0.72.1 and new debugging tools
Expo has released SDK 49, which bundles React Native 0.72.1 and React Native Web 0.19.6. React stays at 18.2.0.
Before upgrading, note a known regression: the Hermes debugger for Android does not currently work in React Native 0.72. Expo recommends holding off on SDK 49 if that debugger is central to your workflow, and create-expo-app will keep defaulting to SDK 48 until the issue is fixed. To start an SDK 49 project explicitly:
npx create-expo-app@latest --template blank@sdk-49
Swap blank for tabs to get the expo-router template.
Debugging improvements
The Hermes JS debugger, launchable from Expo CLI with the j shortcut, now has a Network tab for apps running in Expo Go or expo-dev-client, including images loaded over the network. React devtools is now built into Expo CLI: press shift+m and pick "Start React devtools". There is also experimental support for debugging JavaScript directly in VS Code through the Expo Tools Extension.
Expo Router v2 and other highlights
- Expo Router v2 adds opt-in static rendering on web, automatically typed routes, and async route loading.
useSearchParamsshould be replaced withuseLocalSearchParamsoruseGlobalSearchParams. expo-screen-orientationwas largely rebuilt,expo-blurnow supports Android (with possible performance cost on low-end devices), andexpo-clipboardexports aUIPasteControlbutton.- Local Expo modules can be scaffolded with
npx create-expo-module --local. - Expo Go for the iOS simulator now runs natively on Apple silicon.
- Metro is now the recommended bundler for web;
@expo/webpack-configis in maintenance mode. npx expo starttargets development builds automatically whenexpo-dev-clientis installed; presssto toggle targets.- Environment variables prefixed with
EXPO_PUBLIC_in.envfiles are supported in Metro. - The
expo.install.excludekey in package.json skips version validation for chosen packages. schemein app config can now be an array.- Experimental Fabric support in
expo-dev-client;expo-updatesis the only module not yet supporting the New Architecture. - Recommended TypeScript version is now
^5.1.3.
EAS updates
A free preview of EAS Insights is rolling out. EAS Build adds an Xcode 14.3.1 image and large workers for Android and iOS. On the update side, Updates.checkForUpdateAsync and Updates.fetchUpdateAsync no longer throw when no update is available, Android uses Brotli compression, and Classic Updates (expo publish) will be sunset in 2024.
Breaking changes to check
Expo CLI now defaults to port 8081 instead of 19000. JSC remote debugging is disabled. Constants.manifest is deprecated in favor of Constants.expoConfig. The AuthSession proxy is removed in expo-auth-session@5. android:usesCleartextTraffic now follows system defaults outside debug builds. Reanimated 3 drops the legacy API, expo-face-detector is removed from Expo Go, and ProgressBarAndroid and ProgressViewIOS are gone from React Native 0.72. Kotlin module authors should follow the Gradle 8 migration guide. SDK 46 is dropped; SDK 47 and 48 will be dropped next release.
Upgrading
npm install expo@^49.0.0
npx expo install --fix
npx expo-doctor@latest
Remove expo-cli from project dependencies if present, and create a new development build after upgrading if you use expo-dev-client.
Links
Source: web.archive.org