react-native-config
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "react-native-config", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Expose config variables to React Native apps", | ||
@@ -5,0 +5,0 @@ "keywords": ["env", "config", "config-var", "react-native", "android", "ios", "12factor"], |
@@ -40,4 +40,9 @@ # Config variables for React Native apps | ||
Rnpm is not working with this at the moment. So you'll need to add the `.xcodeproj` as an external library, and add the `.a` file manually to "Link Binary with Libraries". [Similar to this](https://github.com/marcshilling/react-native-image-picker#ios-1). | ||
Link the library with [rnpm](https://github.com/rnpm/rnpm): | ||
``` | ||
$ rnpm link react-native-config | ||
``` | ||
### Android | ||
@@ -48,7 +53,7 @@ | ||
``` | ||
include ':react-native-android-config' | ||
include ':react-native-config' | ||
include ':app' | ||
project(':react-native-android-config').projectDir = new File(rootProject.projectDir, | ||
'../node_modules/react-native-android-config/android') | ||
project(':react-native-config').projectDir = new File(rootProject.projectDir, | ||
'../node_modules/react-native-config/android') | ||
``` | ||
@@ -59,6 +64,6 @@ | ||
``` | ||
// first line | ||
// 2nd line, add a new apply: | ||
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" | ||
// down below | ||
// down below, add new compile: | ||
dependencies { | ||
@@ -73,3 +78,3 @@ ... | ||
```java | ||
import com.lugg.ReactConfig.ReactConfigPackage; // add import | ||
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage; // add import | ||
@@ -76,0 +81,0 @@ public class MainActivity extends ReactActivity { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
88
48161