mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	Update guide.md
This commit is contained in:
		| @@ -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 | ||||
|   // ... 其它代码 | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sunny Luo
					Sunny Luo