| 
									
										
										
										
											2018-09-27 16:03:45 -07:00
										 |  |  | // import { RCTEvent } from "react-native-dom";
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | interface RCTEvent { | 
					
						
							|  |  |  |     viewTag: number; | 
					
						
							|  |  |  |     eventName: string; | 
					
						
							|  |  |  |     coalescingKey: number; | 
					
						
							| 
									
										
										
										
											2020-07-09 19:53:34 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-27 16:03:45 -07:00
										 |  |  |     canCoalesce(): boolean; | 
					
						
							|  |  |  |     coalesceWithEvent(event: RCTEvent): RCTEvent; | 
					
						
							| 
									
										
										
										
											2020-07-09 19:53:34 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-27 16:03:45 -07:00
										 |  |  |     moduleDotMethod(): string; | 
					
						
							|  |  |  |     arguments(): Array<any>; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export default class RCTVideoEvent implements RCTEvent { | 
					
						
							|  |  |  |   viewTag: number; | 
					
						
							|  |  |  |   eventName: string; | 
					
						
							|  |  |  |   coalescingKey: number; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   constructor( | 
					
						
							|  |  |  |     eventName: string, | 
					
						
							|  |  |  |     reactTag: number, | 
					
						
							|  |  |  |     coalescingKey: number, | 
					
						
							|  |  |  |     data: ?Object | 
					
						
							|  |  |  |   ) { | 
					
						
							|  |  |  |     this.viewTag = reactTag; | 
					
						
							|  |  |  |     this.eventName = eventName; | 
					
						
							|  |  |  |     this.coalescingKey = coalescingKey; | 
					
						
							|  |  |  |     this.data = data; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   canCoalesce(): boolean { | 
					
						
							|  |  |  |     return false; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   coalesceWithEvent(event: RCTEvent): RCTEvent { | 
					
						
							|  |  |  |     return; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   moduleDotMethod(): string { | 
					
						
							| 
									
										
										
										
											2020-07-09 19:53:34 -07:00
										 |  |  |     return 'RCTEventEmitter.receiveEvent'; | 
					
						
							| 
									
										
										
										
											2018-09-27 16:03:45 -07:00
										 |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   arguments(): Array<any> { | 
					
						
							|  |  |  |     const args = [ | 
					
						
							|  |  |  |       this.viewTag, | 
					
						
							|  |  |  |       this.eventName, | 
					
						
							| 
									
										
										
										
											2020-07-09 19:53:34 -07:00
										 |  |  |       this.data, | 
					
						
							| 
									
										
										
										
											2018-09-27 16:03:45 -07:00
										 |  |  |     ]; | 
					
						
							|  |  |  |     return args; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   coalescingKey(): number { | 
					
						
							|  |  |  |     return this.coalescingKey; | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |