1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-07 22:55:13 +08:00
Code Issues 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; const HotUpdate = require('react-native').NativeModules.HotUpdate;
import {NativeAppEventEmitter} from 'react-native';
let host = 'http://update.reactnative.cn/api'; let host = 'http://update.reactnative.cn/api';
@@ -91,3 +92,12 @@ export async function switchVersionLater(hash) {
export function markSuccess() { export function markSuccess() {
HotUpdate.markSuccess(); HotUpdate.markSuccess();
} }
//NativeAppEventEmitter.addListener('RCTHotUpdateDownloadProgress',(params)=>{
//
//})
//
//NativeAppEventEmitter.addListener('RCTHotUpdateUnzipProgress',(params)=>{
//
//})