react-native-version-update
Version:
Change Android and iOS files before build
43 lines (33 loc) • 1.51 kB
Markdown
## React Native Version Update
[](https://badge.fury.io/js/react-native-version-update) [](https://npm-stat.com/charts.html?package=react-native-version-update) [](https://github.com/LucasMonteiro1/react-native-version-update/actions)
[](https://nodei.co/npm/react-native-version-update/)
This project works together with [Version Builder](https://github.com/LucasMonteiro1/version-builder) and changes the files of the Android and iOS.
### Requirements
- React Native project
### Setup
`npm install --save react-native-version-update`
Inside package.json
```json
"scripts": {
...
"version": "version-update"
}
```
### Parameters
#### Builder
Passing `--builder`, on start it returns the value of the request and adds in the **package.json** of the project with **React Native** the attribute `buildNumber`.
#### Date
Passing `--date` adds in the **package.json** of the project with **React Native** the attribute `buildDate`.
### Examples
```json
"scripts": {
...
"version": "version-update --builder=example-app"
}
```
```json
"scripts": {
...
"version": "version-update --date --builder=example-app"
}
```