More Premium Hugo Themes Premium React Themes

React Native Version Number

Gets the version number and build number of your app.

React Native Version Number

Gets the version number and build number of your app.

Author Avatar Theme by apsl
Github Stars Github Stars: 380
Last Commit Last Commit: May 15, 2019 -
First Commit Created: Feb 24, 2024 -
React Native Version Number screenshot

Overview:

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.

Features:

  • Cross-Platform Support: Retrieves version information for both iOS and Android platforms.
  • Key Version Details: Returns essential version details like CFBundleShortVersionString, CFBundleVersion, versionName, versionCode, bundleIdentifier, and applicationId.
  • Simplified Access: Provides an easy way to access version information within React Native projects.

Installation:

To install the React Native Version Number package, follow these steps:

  1. Install the package using Yarn:
    yarn add react-native-version-number
    
  2. Link the package to your React Native project:
    react-native link react-native-version-number
    
  3. Manual installation steps for Android:
    • Update your android/settings.gradle file.
    • Add the react-native-version-number project as a compile-time dependency in your android/app/build.gradle file.
    • Modify the MainApplication.java file to utilize react-native-version-number.

Summary:

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.