1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
tdzl2003 2017-03-01 17:16:50 +08:00
parent 05e671a146
commit 97dc2adffb
3 changed files with 7 additions and 2 deletions

View File

@ -55,7 +55,8 @@ npm install --save react-native-update@3.x
1. 在XCode中的Project Navigator里,右键点击`Libraries` ➜ `Add Files to [你的工程名]`
2. 进入`node_modules` ➜ `react-native-update``ios 并选中 `RCTHotUpdate.xcodeproj`
3. 在XCode中的project navigator里,选中你的工程,在 `Build Phases``Link Binary With Libraries` 中添加 `libRCTHotUpdate.a`
4. Run your project (`Cmd+R`)
4.
5. Run your project (`Cmd+R`)
#### Android

View File

@ -6,7 +6,11 @@
// Copyright © 2016 erica. All rights reserved.
//
#if __has_include(<React/RCTBridge.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
@interface RCTHotUpdate : NSObject<RCTBridgeModule>

View File

@ -1,6 +1,6 @@
{
"name": "react-native-update",
"version": "4.0.0",
"version": "4.0.3",
"description": "react-native hot update",
"main": "lib/index.js",
"scripts": {