Skip to content

Expo SDK 43 ships with React Native 0.64.2 and experimental Hermes on iOS

updated

Expo has released SDK 43, built on React Native 0.64.2 and React 17. Expo had stayed on React Native 0.63 for several releases, waiting until 0.64 was stable and widely supported by libraries before recommending it.

Highlights

  • Hermes on iOS (experimental): available in apps built with EAS Build, in custom development clients and in expo-updates. It is not available in Expo Go or in standalone apps built with expo build, due to limitations of the classic build system.
  • New module infrastructure: react-native-unimodules is replaced by the expo package, with better monorepo support, expo install working in all bare workflow apps, and a cleaner AppDelegate. A new npx install-expo-modules command brings Expo modules to any React Native app.
  • No more React Native fork: managed apps now depend on react-native 0.64.2 instead of a tarball from Expo's fork.
  • React 17: adds support for the automatic JSX runtime, which can be enabled via babel-preset-expo.
  • Reload with r in Expo Go, avoiding the Xcode 12 ⌘+r "Record Screen" shortcut clash (⌘+r still works).

Expo CLI

With expo-cli@4.12.7 and higher, an experimental "Exotic" Metro transformer is said to roughly halve cold JavaScript build times and shrink bundles by up to 18%. The CLI also supports Fig autocomplete and shows a QR code about half its previous size. Beta flags include EXPO_USE_CORE_SIM (faster interaction with iOS Simulators), EXPO_USE_APPLE_DEVICE (a rewrite of ios-deploy and xctrace with faster device discovery and installs) and EXPO_USE_EXOTIC.

EAS Build, Submit and development clients

EAS gained eas build --auto-submit, a --json flag for scripting (for example eas build:list --json | jq '.[0].artifacts.buildUrl'), autoIncrement for Android, and automatic .npmrc creation when an NPM_TOKEN secret is set. Development clients can now load updates published with expo publish, have improved onboarding, and work with react-native 0.64 and 0.65.

Breaking changes

  • react-native-unimodules is deprecated; bare workflow projects that use Expo modules should switch to expo. Managed projects are unaffected.
  • expo-payments-stripe is fully removed in favor of @stripe/stripe-react-native.
  • iOS 15 is supported and iOS 11 is dropped; SDK 43 requires iOS 12 or higher.
  • iOS 15 removed all "Courier" variants except "Courier New", so apps using them need to bundle the fonts or switch families.
  • SDK 39 is no longer supported in the latest Expo Go; SDK 40 will be dropped with the next release, planned for December 2021.

Upgrading

Managed projects should install the latest CLI with npm i -g expo-cli (4.12.7 or greater), update eas-cli if used, run expo upgrade, update Expo Go, and create a new build if they have a standalone app. Bare projects take the same CLI and expo upgrade steps, update to Xcode 13 if they support iOS, follow the "Migrating to Expo modules" guide, and rebuild with npm run ios and npm run android.

For React Native developers, the release brings Expo users up to React Native 0.64 and, with npx install-expo-modules, makes Expo modules easier to adopt in any React Native app.

Source: web.archive.org