mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
2df90738d5
Summary: To avoid unnecessary class loads, and better modularity, let's use string keys (enum) to access JSIModule's. For now all JSIModule's are all known inside the core infra (only FabricUIManager and TurboModuleManager right now), so let's keep it simple and explicitly list them out. The only problem here is we lose some form of type safety... Reviewed By: JoshuaGross Differential Revision: D15872777 fbshipit-source-id: 9c2de7ef1e88ef3a6dff5888d644f9d8963af2a3