@Override
    public void onSwipe(int source, Node target, SwipeState swipeState) {
        VRTComponent node = weakComponent.get();
        if (node == null){
            return;
        }

        WritableMap event = Arguments.createMap();
        event.putInt("source", source);
        event.putInt("swipeState", swipeState.getTypeId());
        node.getReactContext().getJSModule(RCTEventEmitter.class).receiveEvent(
                node.getId(),
                ViroEvents.ON_SWIPE,
                event);
    }
Represents all java-to-javascript calls that can be triggered from an EventDelegate.
android/viro_bridge/src/main/java/com/viromedia/bridge/utility/ComponentEventDelegate.java