Expo SDK 40 ships with React Native 0.63 and a Reanimated 2 release candidate
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-reanimatedv2 release candidate is included. Installation isyarn add react-native-reanimated@2.0.0-rc.0plus 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 thenameprop. 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"toandroid.permissionsinapp.jsonorapp.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 moreENOSPCerrors withexpo publishon CI,sourceExtsconfigurable inmetro.config.js, andexpo publishno longer killing a running dev server. SettingEXPO_USE_DEV_SERVER=0reverts to the old behavior. - The Expo client is now built with Xcode 12, matching standalone builds and fixing a DateTimePicker UI inconsistency.
Constants.manifestis available in Bare workflow apps created viaexpo initorexpo eject.- A new
ios.entitlementskey gives direct control over entitlements in standalone apps. expo-notificationsfixes push tokens persisting after device backup restores, adds auseLastNotificationResponsehook, 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-randomis now a peer dependency ofexpo-auth-session.AppLoadingmoved to its own package:expo install expo-app-loading, thenimport AppLoading from 'expo-app-loading';.@react-native-community/pickeris 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-clipboardandexpo-checkboxare available as near-identical replacements. - The global
__expoandExpoobjects 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.
Links
Source: web.archive.org