Expo SDK 38 ships with React Native 0.62 and new Notifications API
Expo has released SDK 38, its summer 2020 release and the second of four quarterly SDKs planned for the year. It brings React Native 0.62, a rewritten notifications module, faster tooling and several new modules, while also marking the final ExpoKit release.
Notifications rewrite
The new expo-notifications API now works in both the Bare and Managed workflows. Behavior is consistent across platforms: notifications triggered in the background are presented immediately without informing the app, while in the foreground the app is notified and can decide at runtime whether to show an alert or play a sound. Notification categories are not yet supported.
The legacy API (import { Notifications } from 'expo';) is deprecated and slated for removal. On Android, apps must opt in to the new API for now by setting android.useNextNotificationsApi to true; iOS needs no extra configuration.
Updates and tooling
expo-updates@0.2.x introduces build-time updates for Bare apps: release builds embed an update built from the local JavaScript source, and running expo publish before the first release build is no longer required.
create-react-native-app has been revived with web, iOS and Android support, OTA updates, 25+ templates and zero dependencies. expo-cli uses up to 2.6x less disk space, new SDK 38 projects have a 13% smaller node_modules, and packages now ship transpiled JS and use TypeScript instead of prop-types. The tabs template was rebuilt in TypeScript with dark mode support.
New modules and APIs
expo-auth-sessionrewritten on top of WebBrowser and Crypto, with guides for 15+ providers.@expo-google-fontspackages exposing 991 Google Fonts across web, iOS and Android.expo-screen-captureto hide content during screenshots or screen recording.expo-status-bar, translucent by default on Android, withstyle="auto"andstyle="inverted"props.expo-linkingfor deep links that integrate with React Navigation v5.@react-native-community/slider,picker,async-storageandsegmented-controlare now in the Expo client.expo-file-systemsupports background downloads and native uploads.- New
android.softwareKeyboardLayoutModeandandroid.allowBackupapp.json keys.
React Native 0.62
SDK 38 includes the Appearance module and useColorScheme hook (not on web), accessibility improvements, React DevTools improvements and the optional LogBox. Flipper is currently unsupported in the Managed workflow.
Removals and deprecations
SDK 34 projects no longer work in the latest Expo client, though standalone SDK 34 apps keep working, and SDK 35 will be dropped with the September release. The experimental AR module has been removed from all SDK versions in iOS Expo client 2.16.0. SDK 38 is the last ExpoKit release; existing ExpoKit apps keep running, but bug fixes and new features in Expo modules require migrating to the Bare or Managed workflow.
Upgrading
Run expo upgrade with the latest expo-cli (npm i -g expo-cli), update the Expo client app, and use expo client:install:ios / expo client:install:android for simulators. Standalone apps need a new expo build:ios or expo build:android to pick up the new SDK. Check the changelog for breaking changes.
Links
Source: web.archive.org