Bump to RN 0.47 add rn-config

Note: You need to cp env-example to .env and run yarn
This commit is contained in:
nikolark committed 2017-08-08 22:34:02 +02:00
1 parent 714115e264
commit 74fa7ecfba
11 files changed
+368 -50

No files matched your search

+2
View File
@@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
import com.android.build.OutputFile
@@ -153,6 +154,7 @@ android {
}
dependencies {
compile project(':react-native-config')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
@@ -3,6 +3,7 @@ package no.neuf.chateau;
import android.app.Application;
import com.facebook.react.ReactApplication;
import com.lugg.ReactNativeConfig.ReactNativeConfigPackage;
import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
@@ -23,7 +24,8 @@ public class MainApplication extends Application implements ReactApplication {
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage()
new MainReactPackage(),
new ReactNativeConfigPackage()
);
}
};
+2
View File
@@ -1,3 +1,5 @@
rootProject.name = 'Dusken'
include ':react-native-config'
project(':react-native-config').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-config/android')
include ':app'