add NativeAppEventEmitter
This commit is contained in:
parent
b733bed803
commit
2fa0fbfee7
10
lib/index.js
10
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)=>{
|
||||
//
|
||||
//})
|
Loading…
Reference in New Issue
Block a user