Search in sources :

Example 1 with EventDispatcher

use of com.facebook.react.uimanager.events.EventDispatcher in project react-native-navigation by wix.

the class CollapsingTopBarReactHeader method dispatchTouchEventToJs.

private void dispatchTouchEventToJs(MotionEvent event) {
    ReactContext reactContext = NavigationApplication.instance.getReactGateway().getReactInstanceManager().getCurrentReactContext();
    EventDispatcher eventDispatcher = reactContext.getNativeModule(UIManagerModule.class).getEventDispatcher();
    mJSTouchDispatcher.handleTouchEvent(event, eventDispatcher);
}
Also used : EventDispatcher(com.facebook.react.uimanager.events.EventDispatcher) ReactContext(com.facebook.react.bridge.ReactContext) UIManagerModule(com.facebook.react.uimanager.UIManagerModule)

Aggregations

ReactContext (com.facebook.react.bridge.ReactContext)1 UIManagerModule (com.facebook.react.uimanager.UIManagerModule)1 EventDispatcher (com.facebook.react.uimanager.events.EventDispatcher)1