Gets the version number and build number of your app.
The React Native Version Number package is used to retrieve version information for both iOS and Android platforms. For iOS, it returns CFBundleShortVersionString, CFBundleVersion, and bundleIdentifier, while for Android, it provides versionName, versionCode, and applicationId. This package simplifies accessing version information in React Native projects.
To install the React Native Version Number package, follow these steps:
yarn add react-native-version-number
react-native link react-native-version-number
android/settings.gradle file.react-native-version-number project as a compile-time dependency in your android/app/build.gradle file.MainApplication.java file to utilize react-native-version-number.The React Native Version Number package simplifies the retrieval of version information for React Native projects. By offering support for both iOS and Android platforms, it provides key version details like version numbers and identifiers, enhancing the development process. The steps for installation and usage are straightforward, making it a valuable tool for React Native developers.