react-native-version-number-nevo
v0.3.2
Published
<p> <img src="https://travis-ci.org/APSL/react-native-version-number.svg?branch=master" /> <img src="https://img.shields.io/npm/dm/react-native-version-number.svg" /> <img src="https://img.shields.io/npm/dt/react-native-version-number.svg" /> </p>
Downloads
5
Maintainers
Readme
react-native-version-number
Returns the CFBundleShortVersionString
and the CFBundleVersion
and bundleIdentifier
on IOS. For Android, returns the versionName
, versionCode
and applicationId
.
| | iOS | Android | Example |
| --- | --- | --- | --- |
| appVersion | CFBundleShortVersionString
| versionName
| 1.0.2
|
| buildVersion | CFBundleVersion
| versionCode
| 42
|
| bundleIdentifier | bundleIdentifier
| applicationId
| 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);
License
MIT.