Update guide.md
This commit is contained in:
parent
f2e3cb51f3
commit
a9ffa4eefd
@ -89,10 +89,11 @@ npm install --save react-native-update@5.x
|
|||||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
// 原来的jsCodeLocation
|
// 原来的jsCodeLocation保留在这里
|
||||||
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
|
jsCodeLocation = ..........
|
||||||
#else
|
#else
|
||||||
jsCodeLocation=[RCTHotUpdate bundleURL];
|
// 非DEBUG情况下启用热更新
|
||||||
|
jsCodeLocation=[RCTHotUpdate bundleURL];
|
||||||
#endif
|
#endif
|
||||||
// ... 其它代码
|
// ... 其它代码
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user