dependabot[bot] 96c37097dc Bump acorn from 5.7.3 to 5.7.4 in /Example
Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-18 22:14:37 -03:00
..
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2016-09-13 18:39:29 -07:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2017-12-04 21:34:37 -08:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2020-03-18 20:43:29 -03:00
2017-12-04 21:34:37 -08:00

Example app using react-native-config

Just a simple app accessing config variables from .env and .env.production.

Running

By default it will read variables from .env:

$ react-native run-android

To read from another file just specify it with ENVFILE, like:

$ ENVFILE=.env.prod react-native run-android

Running from Xcode

Open the Xcode project file in Example/ios/Example.xcodeproj.

Notice there are two schemes setup for the application: "Example" runs the default build, reading vars from .env and "Example (production)" is configured to read from .env.production.