mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c94ef1e3b3
Summary: NativeModules have an initialize() method that they use to allocate any resources, set up listeners, etc. This diff imports that method into the TurboModule interface. This way, we don't have to cast TurboModules to NativeModules to initialize them. Also, it makes sense to import this initialization mechanism into the TurboModule infra. Changelog: [Internal] Reviewed By: JoshuaGross Differential Revision: D26871552 fbshipit-source-id: b8ae515b22928ed678b4003096e0756e991e10ff