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
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iām working on!