1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

Update guide.md

This commit is contained in:
Sunny Luo 2018-01-03 16:30:01 +08:00 committed by GitHub
parent f2e3cb51f3
commit a9ffa4eefd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,10 +89,11 @@ npm install --save react-native-update@5.x
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
#if DEBUG
// 原来的jsCodeLocation
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
 // 原来的jsCodeLocation保留在这里
 jsCodeLocation = ..........
#else
jsCodeLocation=[RCTHotUpdate bundleURL];
 // 非DEBUG情况下启用热更新
 jsCodeLocation=[RCTHotUpdate bundleURL];
#endif
// ... 其它代码
}