Description
react-native-version-number gives a React Native app access to its own version and build numbers from JavaScript. On iOS it reads CFBundleShortVersionString, CFBundleVersion and the bundle identifier. On Android it reads versionName, versionCode and applicationId. The package presents these as three values: appVersion, buildVersion and bundleIdentifier. The README gives an example of 1.0.2 for the version, 42 for the build number and com.foo.bar.MyApp for the identifier. To install it, add the package with yarn and then link it. The README also gives manual installation steps for Android, which add small entries to the Gradle files and to MainApplication. The project is public on GitHub.…
Highlights
- appVersion, buildVersion and bundleIdentifier values
- iOS and Android support
- Install with yarn
- Manual installation steps for Android
Ratings & Reviews
No ratings yet
Be the first to rate react-native-version-number.
People also visit

react-native-idfa
Android and iOS module for react-native to read IDFA (advertising identifier)
react-native-version-number FAQ
What does react-native-version-number do?
It reads your app's version number, build number and bundle identifier from the native settings and exposes them in React Native.
What does it return on iOS?
CFBundleShortVersionString as appVersion, CFBundleVersion as buildVersion, and the bundle identifier.
What does it return on Android?
versionName as appVersion, versionCode as buildVersion, and applicationId as the bundle identifier.
How do I install it?
Run yarn add react-native-version-number and link it. The README also gives manual steps for Android.
Is it open source?
Yes. The source is public on GitHub at APSL/react-native-version-number.
What are the best react-native-version-number alternatives?
Popular alternatives to react-native-version-number include react-native-version-info, react-native-device-info and react-native-idfa. See all react-native-version-number alternatives

















