1.0.1 • Published 7 years ago

rn-settings v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

rn-settings

Environmental settings for react-native application

Requires babel-plugin-transform-inline-environment-variables plugin used to build your RN project.

  1. copy ./settings folder in your project root, edit files
  2. yarn add rn-settings
  3. set APP_ENV environment variable to 'development', 'production' or else
  4. import settings from 'rn-settings' - this will be export from selected .js

Consider that APP_ENV value is actively cached. This "settings" used on CI with clean install every time.