mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	add NativeAppEventEmitter
This commit is contained in:
		
							
								
								
									
										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)=>{ | ||||
| // | ||||
| //}) | ||||
		Reference in New Issue
	
	Block a user
	 lvbingru
					lvbingru