1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-18 01:26:10 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

Update guide.md

This commit is contained in:
DengYun
2016-04-18 11:02:15 +08:00
parent 721f45149d
commit 1c02738a92

View File

@@ -36,9 +36,13 @@ $ rnpm link react-native-update
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{ {
#if DEBUG
jsCodeLocation = [RCTHotUpdate bundleURL]; // 原来的jsCodeLocation
// ... 其它代码 jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
#else
jsCodeLocation=[RCTHotUpdate bundleURL];
#endif
// ... 其它代码
} }
``` ```