Showing the js bundle version in an Expo app

#1

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: https://expo.canny.io/feature-requests/p/show-js-bundle-version-in-app

2 Likes
#2

This might be what you’re looking for:

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

console.log(bundleVersion);
1 Like
closed #3

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