From 81a7d032f134440d6f1c29102eec044c22568b71 Mon Sep 17 00:00:00 2001 From: Ruslan Shestopalyuk Date: Mon, 6 Nov 2023 17:15:47 -0800 Subject: [PATCH] Expose EventEmitter::dispatchEvent APIs for all platforms (#41345) Summary: ## Changelog: [Internal] - This API was already accessible on the Android platform, now other platforms (C++) would benefit from having it available as well. Arguably, it's perfectly fine to have it as public class members - based on empiric experience with the use case we have had. Reviewed By: christophpurrer Differential Revision: D51031340 --- .../ReactCommon/react/renderer/core/EventEmitter.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/core/EventEmitter.h b/packages/react-native/ReactCommon/react/renderer/core/EventEmitter.h index 8f1c26f1480946..d31e30585ff101 100644 --- a/packages/react-native/ReactCommon/react/renderer/core/EventEmitter.h +++ b/packages/react-native/ReactCommon/react/renderer/core/EventEmitter.h @@ -58,13 +58,6 @@ class EventEmitter { const SharedEventTarget& getEventTarget() const; - protected: -#ifdef ANDROID - // We need this temporarily due to lack of Java-counterparts for particular - // subclasses. - public: -#endif - /* * Initiates an event delivery process. * Is used by particular subclasses only.