mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
10acccc86d
Summary: Problem: `RCTLegacyViewManagerInteropCoordinator.mm` handles view commands by looking up `RCTModuleData` from the bridge, and then dispatching that method. In bridgeless mode, `RCTModuleData` doesn't exist. Solution: Instead of relying on `RCTModuleData` (which does a ton of things), manually create a `_moduleMethods` array to store the methods that view manager exposes. This manual creation code was copied from how `RCTModuleData` performs lookup. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D27377257 fbshipit-source-id: c3e820808e6aca03bae6486d5510156b39462215