Skip to content

Instantly share code, notes, and snippets.

@mkonicek
Created January 10, 2016 12:31
Show Gist options
  • Select an option

  • Save mkonicek/17c5228bef38db6c73f7 to your computer and use it in GitHub Desktop.

Select an option

Save mkonicek/17c5228bef38db6c73f7 to your computer and use it in GitHub Desktop.
package com.facebook.react.views.modalhost;
import com.facebook.react.uimanager.events.Event;
import com.facebook.react.uimanager.events.RCTEventEmitter;
/**
* {@link Event} for dismissing a Dialog.
*/
public class DismissEvent extends Event<DismissEvent> {
public static final String EVENT_NAME = "topDismiss";
protected DismissEvent(int viewTag, long timestampMs) {
super(viewTag, timestampMs);
}
@Override
public String getEventName() {
return EVENT_NAME;
}
@Override
public void dispatch(RCTEventEmitter rctEventEmitter) {
rctEventEmitter.receiveEvent(getViewTag(), getEventName(), null);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment