react-native/Libraries/CustomComponents/Navigator
Hedger Wang 6e2f07fb81 [Navigator] Add a callback that is called after emitting an event.
Summary:
While adeveloper requests the emitter to emit an event, the emitter
may not emit the event immediately instead of putting the request
into a queue and process it later.

This diff allows the developer to provide a callback which will be called
when the event has been emitted.

For instance:

```
class NavigationContext {
  push(nextRoute) {
    var nextStack = this._stack.push(nextRoute);
    this.emit(
      'change',
      {
        reason: 'push',
        nextStack: nextStack,
        nextRoute: nextRoute,
      },
      this._onPush
    );
  }

  _onPush(event){
    if (event.defaultPrevented) {
      return;
    }
    this._stack = event.nextStack;
    this.emit('change');
  }
}
```
2015-07-20 21:49:58 -08:00
..
Navigation [Navigator] Add a callback that is called after emitting an event. 2015-07-20 21:49:58 -08:00
Navigator.js [ReactNative] Revert onItemRef removal 2015-07-16 17:49:56 -08:00
NavigatorBreadcrumbNavigationBar.js [ReactNative] Remove dependencies on Navigator idStack 2015-07-17 15:28:57 -08:00
NavigatorBreadcrumbNavigationBarStyles.ios.js [ReactNative][Navigator] Remove another unnecessary use of absolute screen width 2015-04-17 15:02:48 -08:00
NavigatorNavigationBar.js [ReactNative] Remove dependencies on Navigator idStack 2015-07-17 15:28:57 -08:00
NavigatorNavigationBarStyles.ios.js [ReactNative][Navigator] Remove another unnecessary use of absolute screen width 2015-04-17 15:02:48 -08:00
NavigatorSceneConfigs.js Added transitions 'VerticalUpSwipeJump' and 'VerticalDownSwipeJump' in… 2015-07-20 12:53:54 -08:00