Edit this page
Learn how to use the fingerprint runtime version for continuous deployment in production and during development.
Edit this page
This is available in beta for SDK 51 and not yet considered stable. Use may result in unexpected system behavior.
The fingerprint
runtime version policy uses the @expo/fingerprint
package to generate a hash of your project when making a build or publishing an update, and then uses that hash as the runtime version. The hash is calculated based on dependencies, custom native code, native project files, and configuration, amongst other things.
By automatically calculating the runtime version, you don't have to be concerned about native layer compatibility with the JavaScript application when deploying updates to builds.
CI/CD for a React Native project dictates that every JS change (update) is deployed to all compatible builds over-the-air, and new builds are created when the runtime changes.
It can be accomplished by performing roughly these steps:
npx expo-updates fingerprint:generate
command.eas build:list --runtimeVersion <fingerprint>
). Create a new build if none exists yet.
eas update
to publish an update for the current commit.Expo provides a GitHub Action for performing the steps mentioned in the previous section within a GitHub Actions workflow.
If you notice different fingerprints being generated across different machines or environments, it may mean that unanticipated files are being included in the hash calculation. @expo/fingerprint
has a predetermined set of files to include/exclude for hash calculation, but often your project setup may require additional excludes. For projects that include native directories (android and ios) this is more common.
We provide tools for identifying which files are causing fingerprint inconsistencies and mechanisms to exclude those files from fingerprint calculations for your project.
To identify differences in fingerprints on different machines or environments:
npx expo-updates fingerprint:generate
), pass --debug
flag.To exclude files causing the differences, add them to the .fingerprintignore file as described in the @expo/fingerprint
README.
Running the workflow in debug mode will automatically add the --debug
flag to the commands run as part of the action, and the output will be available in the workflow run logs.