From 637d74f2a6bbbee6a657372e8f0da77a1e735dab Mon Sep 17 00:00:00 2001 From: David Vacca Date: Mon, 1 Oct 2018 17:47:46 -0700 Subject: [PATCH] Expose EventEmitter.dispatchEvent as public Summary: This diff exposes the method EventEmitter.dispatchEvent as public in order to be able to access it from the android side. Reviewed By: shergin Differential Revision: D10127509 fbshipit-source-id: d6ddf59c654a91fdeed5fba867ca31d6de96d607 --- ReactCommon/fabric/events/EventEmitter.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ReactCommon/fabric/events/EventEmitter.h b/ReactCommon/fabric/events/EventEmitter.h index 2442255a2..c9a25da7d 100644 --- a/ReactCommon/fabric/events/EventEmitter.h +++ b/ReactCommon/fabric/events/EventEmitter.h @@ -61,7 +61,13 @@ public: void setEnabled(bool enabled) const; bool getEnabled() const; -protected: + protected: + +#ifdef ANDROID +// We need this temporarily due to lack of Java-counterparts for particular subclasses. +public: +#endif + /* * Initates an event delivery process. * Is used by particular subclasses only.