Showing the js bundle version in an Expo app

I would like to show the js bundle version that is running in the app, probably somewhere in the settings section.

It would be helpful for users (and developers) to be able to confirm the app is running the JavaScript bundle that was most recently published using the exp CLI.

Is there a function or API endpoint for accessing the js bundle version?

Here is the feature request for this on Canny: Show js bundle version in app | Voters | Expo

2 Likes

This might be what you’re looking for:

import {Constants} from 'expo';
const bundleVersion = Constants.manifest.version;

console.log(bundleVersion);
1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.