Native project upgrade helper
Edit page
View file-by-file diffs of all the changes you need to make to your native projects to upgrade them to the next Expo SDK version.
For the complete documentation index, see llms.txt. Use this file to discover all available pages.
If you manage your native projects (android and ios directories), to upgrade to the latest Expo SDK, you have to make changes to your native projects. It can be a complex process to find which native file changes and what to update in which file.
The following guide provides diffs to compare native project files between your project's current SDK version and the target SDK version you want to upgrade. You can use them to make changes to your project depending on the expo package version your project uses. The tools on this page are similar to React Native Upgrade Helper. However, they are oriented around projects that use Expo modules and related tooling.
Interested in avoiding upgrading native code altogether? See Continuous Native Generation (CNG) to learn how Expo Prebuild can generate your native projects before a build.
Upgrade native project files
Once you have upgraded your Expo SDK version and related dependencies, use the diff tool below to learn about changes you need to make to your native project and bring them up to date with the current Expo SDK version.
Choose your from SDK version and to SDK version to see the generated diff. Then, apply those changes to your native projects by copying and pasting or manually making changes to the project files.
From SDK version:
To SDK version:
Native code changes from SDK 55 to 56
| 12 | 12 | *.hprof |
| 13 | 13 | .cxx/ |
| 14 | 14 | |
| 15 | # generated inline modules | |
| 16 | app/src/main/java/inline/ | |
| 17 | ||
| 15 | 18 | # Bundle artifacts |
| 16 | 19 | *.jsbundle |
| 1 | 1 | distributionBase=GRADLE_USER_HOME |
| 2 | 2 | distributionPath=wrapper/dists |
| 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip | |
| 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip | |
| 4 | 4 | networkTimeout=10000 |
| 5 | 5 | validateDistributionUrl=true |
| 6 | 6 | zipStoreBase=GRADLE_USER_HOME |
| 114 | 114 | NONSTOP* ) nonstop=true ;; |
| 115 | 115 | esac |
| 116 | 116 | |
| 117 | CLASSPATH="\\\"\\\"" | |
| 118 | 117 | |
| 119 | 118 | |
| 120 | 119 | # Determine the Java command to use to start the JVM. |
| 172 | 171 | # For Cygwin or MSYS, switch paths to Windows format before running java |
| 173 | 172 | if "$cygwin" || "$msys" ; then |
| 174 | 173 | APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) |
| 175 | CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) | |
| 176 | 174 | |
| 177 | 175 | JAVACMD=$( cygpath --unix "$JAVACMD" ) |
| 178 | 176 | |
| 205 | 203 | DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' |
| 206 | 204 | |
| 207 | 205 | # Collect all arguments for the java command: |
| 208 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, | |
| 206 | # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, | |
| 209 | 207 | # and any embedded shellness will be escaped. |
| 210 | 208 | # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be |
| 211 | 209 | # treated as '${Hostname}' itself on the command line. |
| 212 | 210 | |
| 213 | 211 | set -- \ |
| 214 | 212 | "-Dorg.gradle.appname=$APP_BASE_NAME" \ |
| 215 | -classpath "$CLASSPATH" \ | |
| 216 | 213 | -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ |
| 217 | 214 | "$@" |
| 218 | 215 |
| 1 | @REM Copyright (c) Meta Platforms, Inc. and affiliates. | |
| 2 | @REM | |
| 3 | @REM This source code is licensed under the MIT license found in the | |
| 4 | @REM LICENSE file in the root directory of this source tree. | |
| 5 | ||
| 1 | 6 | @rem |
| 2 | 7 | @rem Copyright 2015 the original author or authors. |
| 3 | 8 | @rem |
| 70 | 75 | :execute |
| 71 | 76 | @rem Setup the command line |
| 72 | 77 | |
| 73 | set CLASSPATH= | |
| 74 | 78 | |
| 75 | 79 | |
| 76 | 80 | @rem Execute Gradle |
| 77 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* | |
| 81 | "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* | |
| 78 | 82 | |
| 79 | 83 | :end |
| 80 | 84 | @rem End local scope for the variables with windows NT shell |
| 248 | 248 | "FB_SONARKIT_ENABLED=1", |
| 249 | 249 | ); |
| 250 | 250 | INFOPLIST_FILE = HelloWorld/Info.plist; |
| 251 | IPHONEOS_DEPLOYMENT_TARGET = 15.1; | |
| 251 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; | |
| 252 | 252 | LD_RUNPATH_SEARCH_PATHS = ( |
| 253 | 253 | "$(inherited)", |
| 254 | 254 | "@executable_path/Frameworks", |
| 255 | 255 | ); |
| 256 | MACOSX_DEPLOYMENT_TARGET = 13.4; | |
| 256 | 257 | MARKETING_VERSION = 1.0; |
| 257 | 258 | OTHER_LDFLAGS = ( |
| 258 | 259 | "$(inherited)", |
| 275 | 276 | CLANG_ENABLE_MODULES = YES; |
| 276 | 277 | CURRENT_PROJECT_VERSION = 1; |
| 277 | 278 | INFOPLIST_FILE = HelloWorld/Info.plist; |
| 278 | IPHONEOS_DEPLOYMENT_TARGET = 15.1; | |
| 279 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; | |
| 279 | 280 | LD_RUNPATH_SEARCH_PATHS = ( |
| 280 | 281 | "$(inherited)", |
| 281 | 282 | "@executable_path/Frameworks", |
| 282 | 283 | ); |
| 284 | MACOSX_DEPLOYMENT_TARGET = 13.4; | |
| 283 | 285 | MARKETING_VERSION = 1.0; |
| 284 | 286 | OTHER_LDFLAGS = ( |
| 285 | 287 | "$(inherited)", |
| 341 | 343 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
| 342 | 344 | GCC_WARN_UNUSED_FUNCTION = YES; |
| 343 | 345 | GCC_WARN_UNUSED_VARIABLE = YES; |
| 344 | IPHONEOS_DEPLOYMENT_TARGET = 15.1; | |
| 346 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; | |
| 345 | 347 | LD_RUNPATH_SEARCH_PATHS = ( |
| 346 | 348 | /usr/lib/swift, |
| 347 | 349 | "$(inherited)", |
| 393 | 395 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
| 394 | 396 | GCC_WARN_UNUSED_FUNCTION = YES; |
| 395 | 397 | GCC_WARN_UNUSED_VARIABLE = YES; |
| 396 | IPHONEOS_DEPLOYMENT_TARGET = 15.1; | |
| 398 | IPHONEOS_DEPLOYMENT_TARGET = 16.4; | |
| 397 | 399 | LD_RUNPATH_SEARCH_PATHS = ( |
| 398 | 400 | /usr/lib/swift, |
| 399 | 401 | "$(inherited)", |
| 13 | 13 | end |
| 14 | 14 | |
| 15 | 15 | ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] ||= podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR'] |
| 16 | ENV['RCT_USE_RN_DEP'] ||= '1' if podfile_properties['ios.buildReactNativeFromSource'] != 'true' | |
| 17 | ENV['RCT_USE_PREBUILT_RNCORE'] ||= '1' if podfile_properties['ios.buildReactNativeFromSource'] != 'true' | |
| 16 | ENV['RCT_USE_RN_DEP'] ||= podfile_properties['ios.buildReactNativeFromSource'] == 'true' ? '0' : '1' | |
| 17 | ENV['RCT_USE_PREBUILT_RNCORE'] ||= podfile_properties['ios.buildReactNativeFromSource'] == 'true' ? '0' : '1' | |
| 18 | 18 | ENV['RCT_HERMES_V1_ENABLED'] ||= '1' if podfile_properties['expo.useHermesV1'] == 'true' |
| 19 | platform :ios, podfile_properties['ios.deploymentTarget'] || '15.1' | |
| 19 | ENV['EXPO_USE_PRECOMPILED_MODULES'] ||= '1' if podfile_properties['EXPO_USE_PRECOMPILED_MODULES'] != 'false' | |
| 20 | platform :ios, podfile_properties['ios.deploymentTarget'] || '16.4' | |
| 20 | 21 | |
| 21 | 22 | prepare_react_native_project! |
| 22 | 23 |
| 2 | 2 | "name": "expo-template-bare-minimum", |
| 3 | 3 | "description": "This bare project template includes a minimal setup for using unimodules with React Native.", |
| 4 | 4 | "license": "0BSD", |
| 5 | "version": "55.0.38", | |
| 5 | "version": "56.0.16", | |
| 6 | 6 | "main": "index.js", |
| 7 | 7 | "scripts": { |
| 8 | 8 | "start": "expo start --dev-client", |
| 11 | 11 | "web": "expo start --web" |
| 12 | 12 | }, |
| 13 | 13 | "dependencies": { |
| 14 | "expo": "~55.0.26", | |
| 15 | "expo-status-bar": "~55.0.6", | |
| 16 | "react": "19.2.0", | |
| 17 | "react-native": "0.83.6" | |
| 14 | "expo": "~56.0.2", | |
| 15 | "expo-status-bar": "~56.0.4", | |
| 16 | "react": "19.2.3", | |
| 17 | "react-native": "0.85.3" | |
| 18 | }, | |
| 19 | "publishConfig": { | |
| 20 | "executableFiles": [ | |
| 21 | "./android/gradlew" | |
| 22 | ] | |
| 18 | 23 | } |
| 19 | 24 | } |
| 20 | 25 |