react-native-build-number
v1.2.0
Published
Automatic build number (version) incrementation for React Native
Downloads
9
Maintainers
Readme
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)