Created
January 10, 2016 12:31
-
-
Save mkonicek/17c5228bef38db6c73f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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