From 7d8f1c9c10f22635c25ad224fe1927f4aa3736b4 Mon Sep 17 00:00:00 2001 From: lvbingru Date: Wed, 6 Apr 2016 00:51:22 +0800 Subject: [PATCH] iOS doc update --- docs/guide.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/guide.md b/docs/guide.md index e1a0a5a..335e796 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -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) 在你的ReactActivity中增加如下代码: