mirror of
https://github.com/status-im/react-native-config.git
synced 2026-08-27 20:51:07 +00: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.