Java Code Examples for com.facebook.react.uimanager.events.RCTEventEmitter#receiveEvent()
The following examples show how to use
com.facebook.react.uimanager.events.RCTEventEmitter#receiveEvent() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NativeAnimatedNodeTraversalTest.java From react-native-GPay with MIT License | 5 votes |
private Event createScrollEvent(final int tag, final double value) { return new Event(tag) { @Override public String getEventName() { return "topScroll"; } @Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(tag, "topScroll", JavaOnlyMap.of( "contentOffset", JavaOnlyMap.of("y", value))); } }; }
Example 2
Source File: ReactTextInputKeyPressEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 3
Source File: ReactTextInputEndEditingEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 4
Source File: ReactTextInputBlurEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 5
Source File: TopLoadingFinishEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), mEventData); }
Example 6
Source File: ReactSlidingCompleteEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 7
Source File: ReactTextInputFocusEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 8
Source File: ProgressEvent.java From react-native-crosswalk-webview-plus with MIT License | 4 votes |
@Override public void dispatch (RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 9
Source File: ScreenDismissedEvent.java From react-native-screens with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), Arguments.createMap()); }
Example 10
Source File: PickerItemSelectEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 11
Source File: TopLoadingErrorEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), mEventData); }
Example 12
Source File: DrawerOpenedEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), Arguments.createMap()); }
Example 13
Source File: DownloadButtonEvent.java From react-native-download-button with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 14
Source File: DownloadButtonEvent.java From react-native-download-button with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 15
Source File: RefreshEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), null); }
Example 16
Source File: RequestCloseEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), null); }
Example 17
Source File: ReactAztecFormattingChangeEvent.java From react-native-aztec with GNU General Public License v2.0 | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 18
Source File: ReactAztecSelectionChangeEvent.java From react-native-aztec with GNU General Public License v2.0 | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 19
Source File: PageScrollStateChangedEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }
Example 20
Source File: ReactCheckBoxEvent.java From react-native-GPay with MIT License | 4 votes |
@Override public void dispatch(RCTEventEmitter rctEventEmitter) { rctEventEmitter.receiveEvent(getViewTag(), getEventName(), serializeEventData()); }