Upgrade to rn 0.38 (#624)

* upgrade to RN 0.38
This commit is contained in:
BO KANG
2016-11-28 13:58:13 -08:00
committed by GitHub
parent 2431cb8c19
commit 76b4f4d558
6 changed files with 16 additions and 12 deletions

View File

@@ -17,6 +17,7 @@
# Ignore unexpected extra @providesModule
.*/node_modules/commoner/test/source/widget/share.js
.*/node_modules/.*/node_modules/fbjs/.*
# Ignore duplicate module providers
# For RN Apps installed via npm, "Libraries" folder is inside node_modules/react-native but in the source repo it is in the root

View File

@@ -38,4 +38,4 @@ npm-debug.log
buck-out/
\.buckd/
android/app/libs
android/keystores/debug.keystore
*.keystore

View File

@@ -8,9 +8,9 @@ import com.facebook.react.ReactInstanceManager;
import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;
import com.microsoft.codepush.react.CodePush;
import java.util.Arrays;
import java.util.List;
@@ -20,8 +20,7 @@ public class MainApplication extends Application implements ReactApplication {
@Override
protected String getJSBundleFile() {
return CodePush.getJSBundleFile();
}
}
@Override
protected boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
@@ -31,13 +30,18 @@ public class MainApplication extends Application implements ReactApplication {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new CodePush("deployment-key-here", MainApplication.this, BuildConfig.DEBUG)
);
new CodePush("deployment-key-here", MainApplication.this, BuildConfig.DEBUG) );
}
};
@Override
public ReactNativeHost getReactNativeHost() {
return mReactNativeHost;
return mReactNativeHost;
}
@Override
public void onCreate() {
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}

View File

@@ -39,7 +39,6 @@
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>NSAppTransportSecurity</key>
<!--See http://ste.vn/2015/06/10/configuring-app-transport-security-ios-9-osx-10-11/ -->
<dict>
<key>NSExceptionDomains</key>
<dict>

View File

@@ -7,8 +7,8 @@
},
"dependencies": {
"babel-preset-react-native-stage-0": "1.0.1",
"react": "15.3.1",
"react-native": "0.37.0",
"react": "15.4.0",
"react-native": "0.38.0",
"react-native-code-push": "file:../../"
}
}