Skip to content

Automatic build number (version) incrementation for React Native

Notifications You must be signed in to change notification settings

florindumitru/react-native-build-number

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Automatic build number (version) incrementation for React Native

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published