react-native-config/Example/README.md

19 lines
350 B
Markdown
Raw Normal View History

2016-03-03 21:35:15 +00:00
# Example app using react-native-config
Just a single app accessing config variables from `.env` and `.env.prod`.
## Running on Android
By default it will read variables from `.env`:
```bash
$ react-native run-android
```
To read from another file just specify it with `ENVFILE`, like:
```bash
$ ENVFILE=.env.prod react-native run-android
```