Skip to content

Expo SDK 40 ships with React Native 0.63 and a Reanimated 2 release candidate

updated

Expo has released SDK 40, its fourth and final SDK of 2020. It stays on React Native 0.63, essentially the same version as SDK 39, with additional bugfixes cherry-picked on top. Bare workflow projects can move from react-native 0.63.3 to 0.63.4 without extra steps.

Highlights

  • Reanimated 2 release candidate: the react-native-reanimated v2 release candidate is included. Installation is yarn add react-native-reanimated@2.0.0-rc.0 plus the Babel plugin.
  • @expo/vector-icons now tracks react-native-vector-icons@7.1.0 (previously 6.6.0), with updated MaterialCommunityIcons, MaterialIcons, FontAwesome 5 and Feather sets. TypeScript types now autocomplete and validate the name prop. Apps that use the updated icon sets should check that every icon they use is still included.
  • Background location is opt-in on Android. Apps that need it must add "ACCESS_BACKGROUND_LOCATION" to android.permissions in app.json or app.config.js.
  • @expo/dev-server is used for all SDK 40+ apps. Expo CLI now starts Metro directly through its JavaScript API instead of via @react-native-community/cli. Expo reports faster publishing (one early adopter saw 33%), no more ENOSPC errors with expo publish on CI, sourceExts configurable in metro.config.js, and expo publish no longer killing a running dev server. Setting EXPO_USE_DEV_SERVER=0 reverts to the old behavior.
  • The Expo client is now built with Xcode 12, matching standalone builds and fixing a DateTimePicker UI inconsistency.
  • Constants.manifest is available in Bare workflow apps created via expo init or expo eject.
  • A new ios.entitlements key gives direct control over entitlements in standalone apps.
  • expo-notifications fixes push tokens persisting after device backup restores, adds a useLastNotificationResponse hook, and supports weekly scheduling.

Expo CLI is about 10% smaller and installs roughly 12 seconds faster, and re-running expo eject now syncs Bare projects with the Expo config. Snack has a new home at the expo/snack monorepo, which for now holds its documentation and the snack-sdk package. snack-sdk@3 is out, and as of SDK 40 Snack requires all used dependencies to be listed in package.json.

Breaking changes and deprecations

  • expo-random is now a peer dependency of expo-auth-session.
  • AppLoading moved to its own package: expo install expo-app-loading, then import AppLoading from 'expo-app-loading';.
  • @react-native-community/picker is now @react-native-picker/picker, following the React Native Community organization's policy change.
  • With Clipboard and CheckBox slated for removal in React Native 0.64, expo-clipboard and expo-checkbox are available as near-identical replacements.
  • The global __expo and Expo objects are deprecated and scheduled for removal in SDK 41.

Expo also plans to drop iOS 10 support soon, has ended support for SDK 36, and will drop SDK 37 with the next release planned for March 2021. Separately, Apple now requires privacy details in App Store Connect for new submissions and updates as of December 8, 2020.

Upgrading

Managed projects should run expo upgrade with the latest expo-cli (npm i -g expo-cli), review the changelog, update the Expo client, and rebuild standalone apps with expo build:ios and expo build:android. Bare projects also need CocoaPods 1.10.0 or greater, then rebuild with yarn ios and yarn android.

Source: web.archive.org