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