From 2fa0fbfee70dd506a56ae6498b20beaab65cea47 Mon Sep 17 00:00:00 2001 From: lvbingru Date: Wed, 6 Apr 2016 09:47:26 +0800 Subject: [PATCH] add NativeAppEventEmitter --- lib/index.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/index.js b/lib/index.js index b191b0b..24e3eee 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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)=>{ +// +//}) \ No newline at end of file