mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-06-11 08:04:23 +08:00
Refactor plugin and example based on new design
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
* on the same Wi-Fi network.
|
||||
*/
|
||||
|
||||
//jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
|
||||
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
|
||||
|
||||
/**
|
||||
* OPTION 2
|
||||
@@ -44,8 +44,8 @@
|
||||
*
|
||||
* see http://facebook.github.io/react-native/docs/runningondevice.html
|
||||
*/
|
||||
|
||||
jsCodeLocation = [HybridMobileDeploy appBundleUrl];
|
||||
|
||||
//jsCodeLocation = [HybridMobileDeploy getBundleUrl];
|
||||
|
||||
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
|
||||
moduleName:@"HybridMobileDeployCompanion"
|
||||
|
||||
@@ -38,5 +38,7 @@
|
||||
<false/>
|
||||
<key>NSLocationWhenInUseUsageDescription</key>
|
||||
<string></string>
|
||||
<key>CodePushDeploymentKey</key>
|
||||
<string>deployment-key-here</string>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -15,7 +15,7 @@ var {
|
||||
|
||||
var Button = require("react-native-button");
|
||||
|
||||
var HybridMobileDeploy = require('react-native-hybrid-mobile-deploy')('http://localhost:3000/', '<deployment key here>');
|
||||
var HybridMobileDeploy = require('react-native-hybrid-mobile-deploy');
|
||||
|
||||
var HybridMobileDeployCompanion = React.createClass({
|
||||
componentDidMount: function() {
|
||||
|
||||
Reference in New Issue
Block a user