1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

add NativeAppEventEmitter

This commit is contained in:
lvbingru 2016-04-06 09:47:26 +08:00
parent b733bed803
commit 2fa0fbfee7

View File

@ -3,6 +3,7 @@
*/
const HotUpdate = require('react-native').NativeModules.HotUpdate;
import {NativeAppEventEmitter} from 'react-native';
let host = 'http://update.reactnative.cn/api';
@ -91,3 +92,12 @@ export async function switchVersionLater(hash) {
export function markSuccess() {
HotUpdate.markSuccess();
}
//NativeAppEventEmitter.addListener('RCTHotUpdateDownloadProgress',(params)=>{
//
//})
//
//NativeAppEventEmitter.addListener('RCTHotUpdateUnzipProgress',(params)=>{
//
//})