mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-09-18 01:26:10 +08:00
Update guide.md
This commit is contained in:
@@ -36,8 +36,12 @@ $ rnpm link react-native-update
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
|
||||
jsCodeLocation = [RCTHotUpdate bundleURL];
|
||||
#if DEBUG
|
||||
// 原来的jsCodeLocation
|
||||
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
|
||||
#else
|
||||
jsCodeLocation=[RCTHotUpdate bundleURL];
|
||||
#endif
|
||||
// ... 其它代码
|
||||
}
|
||||
```
|
||||
|
Reference in New Issue
Block a user