Update guide.md
This commit is contained in:
parent
721f45149d
commit
1c02738a92
@ -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
|
||||||
|
// ... 其它代码
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user