mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5348a98207
Summary: This diff migrates all the lookups of EventDispatcher to not depend on UIManagerModule anymore. This refactor is necessary because: - Users running in Fabric / Venice should not load on the UIManagerModule class - D25858934 will introduce a change that will break all of these callsites In the migration I'm relying on the method UIManagerHelper.getEventDispatcherFromReactTag() that returns the correct EventDispatcher for a reactTag. I'm planning to land this change early in the week (to catch potential errors in alpha / beta versions) As a followup we need to deprecate and prevent developers to continue using getNativeModule(UIManagerModule.class) moving forward. That will be part of another diff changelog: [internal] internal Reviewed By: JoshuaGross Differential Revision: D25858933 fbshipit-source-id: e26c99759307517b5bef483274fe0e0d71bb4c6c