mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d7a0c44590
Summary: Some module classes may not be loaded yet, so looking up via classes may not always give the correct instance. This diff added a new lookup method that delegate to the bridge delegate to force load the modules as needed. The existing moduleForName: method was left untouched because it's solely used by RCTUIManager at the moment. Reviewed By: dshahidehpour Differential Revision: D13033876 fbshipit-source-id: 4082fcd68498004f678b4b95adc82b5b134fefdf