Skip to content

neopit/react-native-version-number

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-version-number

Returns the CFBundleShortVersionString and the CFBundleVersion and bundleIdentifier on IOS. For Android, returns the versionName and versionCode.

iOS Android Example
appVersion CFBundleShortVersionString versionName 1.0.2
buildVersion CFBundleVersion versionCode 42
bundleIdentifier bundleIdentifier com.foo.bar.MyApp

Getting started

Install the package

$ yarn add react-native-version-number

Link

$ react-native link

Usage

import VersionNumber from 'react-native-version-number';

console.log(VersionNumber.appVersion);
console.log(VersionNumber.buildVersion);

console.log(VersionNumber.bundleIdentifier); // iOS only

License

MIT.

About

Gets the version number and build number of your app.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 68.4%
  • Objective-C 20.5%
  • JavaScript 11.1%