mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 05:15:49 +08:00
[Navigation] Implements NavigationContextFuture
This commit is contained in:
@@ -67,10 +67,10 @@ class NavigationContext {
|
||||
}
|
||||
}
|
||||
|
||||
emit(eventType: String, data: any): void {
|
||||
emit(eventType: String, data: any, didEmitCallback: ?Function): void {
|
||||
var emitter = this._eventEmitter;
|
||||
if (emitter) {
|
||||
emitter.emit(eventType, data);
|
||||
emitter.emit(eventType, data, didEmitCallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user