aa900031 / react-native-environment

Migrate to Gitlab https://gitlab.com/aa900031/react-native-environment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-environment

npm version

The react native module, will read native project .properties or .plist

Installation

First install this package

npm install --save react-native-environment

and link that by rnpm

rnpm link react-native-environment

PS. I don't want to say manually install guid, please use rnpm, it's really goods to use

Use (iOS)

  1. Will create plist with info.plist same level, by name: env.plist
  2. Input your key value datas

Use (Android)

  1. Will create properties in assets folder, by name: env.properties
  2. Input your key value datas

Use (JS)

import module:

var Env = require('react-native-environment');

or

import Env from 'react-native-environment'

call object key

console.log(Env.uid);

Release Notes

  • 0.0.1 init version

About

Migrate to Gitlab https://gitlab.com/aa900031/react-native-environment

License:MIT License


Languages

Language:Java 76.6%Language:Objective-C 20.5%Language:JavaScript 2.9%