react-native-build-number

1.2.0 • Public • Published

react-native-build-number

A simple way to automatically increase a build number (version) for React Native !

  • Every time you run "npm start" the build number will increase !

Install

npm i react-native-build-number

or

yarn add react-native-build-number

Setup

In your app.json file add (below displayName):

"build": 1,

In your package.json file, in scripts change "start" with:

"start": "react-native-build-number && react-native start",

Read build number

import appJson from './your-path/app.json';
console.log(appJson.build)

Package Sidebar

Install

npm i react-native-build-number

Weekly Downloads

1

Version

1.2.0

License

MIT

Unpacked Size

2 kB

Total Files

4

Last publish

Collaborators

  • florindumitru