A simple way to automatically increase a build number (version) for React Native !
- Every time you run "npm start" the build number will increase !
npm i react-native-build-number
or
yarn add react-native-build-number
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",
import appJson from './your-path/app.json';
console.log(appJson.build)