mirror of
https://gitcode.com/gh_mirrors/re/react-native-pushy.git
synced 2025-10-07 23:15:16 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -24,6 +24,24 @@ $ rnpm link react-native-update
|
|||||||
|
|
||||||
// 文档建设中
|
// 文档建设中
|
||||||
|
|
||||||
|
在工程target的Build Phases->Link Binary with Libraries中加入libz.tbd、libbz2.1.0.tbd
|
||||||
|
|
||||||
|
|
||||||
|
在你的AppDelegate.m文件中增加如下代码:
|
||||||
|
|
||||||
|
```objective-c
|
||||||
|
// ... 其它代码
|
||||||
|
|
||||||
|
#import "RCTHotUpdate.h"
|
||||||
|
|
||||||
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||||
|
{
|
||||||
|
|
||||||
|
jsCodeLocation = [RCTHotUpdate bundleURL];
|
||||||
|
// ... 其它代码
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## 配置Bundle URL(Android)
|
## 配置Bundle URL(Android)
|
||||||
|
|
||||||
在你的ReactActivity中增加如下代码:
|
在你的ReactActivity中增加如下代码:
|
||||||
|
Reference in New Issue
Block a user