Refactor plugin and example based on new design

This commit is contained in:
Will Anderson
2015-07-24 03:46:00 -07:00
parent 48d1d98b6b
commit f72ab12c7d
8 changed files with 211 additions and 92 deletions

View File

@@ -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"

View File

@@ -38,5 +38,7 @@
<false/>
<key>NSLocationWhenInUseUsageDescription</key>
<string></string>
<key>CodePushDeploymentKey</key>
<string>deployment-key-here</string>
</dict>
</plist>

View File

@@ -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() {