HomeGuidesReferenceLearn
ArchiveExpo SnackDiscord and ForumsNewsletter

New Architecture

Learn about React Native's "New Architecture" and how and why to migrate to it.


We recommend using SDK 51 or later for the best experience with the New Architecture.

The New Architecture is a name that we use to describe a complete refactoring of the internals of React Native. It is also used to solve limitations of the original React Native architecture discovered over years of usage in production at Meta and other companies.

In this guide, we'll talk about how to use the New Architecture in Expo projects today.

To learn more about the ideas and motivations behind the New Architecture, we recommend the following resources:

Introduction to the New Architecture

A starting point for exploring the various topics related to the New Architecture.

Why a New Architecture

A high level overview of the motivations behind the New Architecture.

Why invest in migrating to the New Architecture?

The New Architecture is the future of React Native — yet, for many apps, there may not be many immediate benefits to migrating today. You may want to think of migrating to the New Architecture as an investment in the future of your app, rather than as a way to immediately improve your app.

The changes that come with the New Architecture address the technical debt of the original implementation and unlock possibilities for solving long-standing issues in React Native, such as interoperability with synchronous native APIs (for example, UITableView), and pave the way for concurrent React support.

Expo tools and the New Architecture

As of SDK 51, nearly all expo-* packages in the Expo SDK support the New Architecture (including bridgeless). Learn more about known issues.

Additionally, all modules written using the Expo Modules API support the New Architecture by default! So if you have built your own native modules using this API, no additional work is needed to use them with the New Architecture.

Third-party libraries and the New Architecture

The compatibility status of many of the most popular libraries, such as react-native-bootsplash, react-native-fbsdk-next, and react-native-pdf, are tracked in the "New Architecture support in popular libraries" spreadsheet. This does not track every library, only those that appeared in the top 400 most installed libraries on EAS Build, so if a library is not there it does not mean it is necessarily unsupported.

In React Native 0.74, there are various Interop Layers enabled by default which allows many libraries to work without any changes — however, it's not perfect and some libraries will need to be updated. The libraries that are most likely to require updates are those that ship or depend on third party native code. Learn more about library support in the New Architecture.

Learn more about known issues.

Initialize a new project with the New Architecture

The easiest way to get started with the New Architecture is to use the with-new-arch template when creating a new project:

Terminal
npx create-expo-app@latest -e with-new-arch

Enable the New Architecture in an existing project

You can enable the New Architecture in your app using the expo-build-properties config plugin:

1

Install expo-build-properties:

Terminal
npx expo install expo-build-properties

2

Set newArchEnabled on target platforms:

app.json
{
  "expo": {
    "plugins": [
      [
        "expo-build-properties",
        {
          "ios": {
            "newArchEnabled": true
          },
          "android": {
            "newArchEnabled": true
          }
        }
      ]
    ]
  }
}

3

Run prebuild command and compile your project:

Terminal
npx expo prebuild --clean
npx expo run:android
eas build -p android
Terminal
npx expo prebuild --clean
npx expo run:ios
eas build -p ios

If the build succeeds, you will now be running your app with the New Architecture! Depending on the native modules you use, your app may work properly immediately.

Now you can tap around your app and test it out. For most non-trivial apps, you're likely to encounter some issues, such as missing native views that haven't been implemented for the New Architecture yet. Many of the issues you encounter are actionable and can be resolved with some configuration or code changes. We recommend reading Troubleshooting sections below for more information.

If you use Expo Router or React Navigation, your app may be impacted by a known issue with useLayoutEffect in React Native with the New Architecture. This issue is expected to be resolved in a patch release for React Native 0.74.
Are you enabling the New Architecture in a bare React Native app?
  • Android: Set newArchEnabled=true in the gradle.properties file.
  • iOS: If your project has a Podfile.properties.json file (it was created by npx create-expo-app or npx expo prebuild), you can enable the New Architecture by setting the newArchEnabled property to "true" in the Podfile.properties.json file. Otherwise, refer to the "Enable the New Architecture for Apps" section of the React Native New Architecture working group.

Troubleshooting

Meta and Expo are working towards making the New Architecture the default for all new apps and ensuring it is as easy as possible to migrate existing apps. However, the New Architecture isn't just a name — many of the internals of React Native has been re-architected and rebuilt from the ground up. As a result, you may encounter issues when enabling the New Architecture in your app. The following is some advice for troubleshooting these issues.

Can I still try the New Architecture even if some of the libraries I use aren't supported?

Yes! You can try the New Architecture in your app even if some of the libraries you use aren't supported. Create a new branch in your repository and remove any of the libraries that aren't compatible, until your app is running. This will give you a good idea of what libraries still need work before you can fully migrate to the New Architecture. We recommend creating issues or pull requests on those libraries' repositories to help them become compatible with the New Architecture.

We'd also love it if you could report your experience, so we can learn how developers like you are getting on and help you out where possible.

Known issues in Expo SDK libraries

While there are likely incompatibilities we are not aware of, the following are the known issues with the New Architecture in the Expo SDK:

  • expo-splash-screen: on iOS, preventAutoHideAsync() does not prevent hiding the splash screen. This will be fixed in React Native 0.74.1.
  • expo-dev-client: we are currently investigating issues with stability on iOS, so you may encounter an increased crash rate in your development builds.
  • expo-notifications: local notifications work, but remote notifications not yet fully supported.
  • expo-task-manager and expo-background-fetch: not yet supported.
  • expo-location: background location is not yet supported.
Known issues in React Native
  • facebook/react-native#44111 impacts navigation libraries like Expo Router and React Navigation, causing navigation properties for a screen to not be applied until after a transition has completed, and potentially other similar issues with navigation (see an example). There is work in progress to fix this and we expect that it will be available soon in a patch release for React Native 0.74.
Known issues in third-party libraries

Refer to the reactwg/react-native-new-architecture/discussions#167 for general information, and the issues on any specific libraries you use for more details. The following is a summary of issues and, when available, workarounds for some popular libraries that Expo has tracked:

  • React Native Firebase: this suite of libraries does not yet support the New Architecture.
  • @react-native-community/masked-view: use @react-native-masked-view/masked-view instead.
  • @react-native-community/clipboard: use @react-native-clipboard/clipboard instead.
  • rn-fetch-blob: use react-native-blob-util instead.
  • react-native-fs: use expo-file-system or a fork of react-native-fs instead.
  • react-native-geolocation-service: use expo-location instead.
  • react-native-datepicker: use react-native-date-picker or @react-native-community/datetimepicker instead.
My build failed after enabling the New Architecture

Create a minimal reproducible example and report the issue to the library author, if applicable, or to the React Native team.