New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rn-settings

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-settings

Environmental settings for react-native application

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

rn-settings

Environmental settings for react-native application

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

  • copy ./settings folder in your project root, edit files
  • yarn add rn-settings
  • set APP_ENV environment variable to 'development', 'production' or else
  • 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.

Keywords

react-native

FAQs

Package last updated on 23 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts