Ben Borgers

How to get the current app version in Expo

April 26, 2020

You often want to show the version number of your app to the user.

In an Expo (React Native) app, you can do this using the expo-constants package, provided by Expo.

First, install the package:

expo install expo-constants

Then, add the package to the file where you want to get the version number:

import Constants from "expo-constants"

Now, you can access Constants.manifest, which is the current "manifest" (app.json file) of your app. The version number is available like this:

const version = Constants.manifest.version

More blog posts

Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iā€™m working on!

Twitter ↗ RSS feed ↗