mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
80f64f1e5b
Summary: In D16805827, I moved ImageLoader to CoreModules. In the process, I migrated usages of `[_bridge moduleForClass:[RCTImageLoader class]]` to `[_bridge moduleForName:@"ImageLoader"]`. These two APIs aren't equivalent, however, since `[_bridge moduleForClass:[RCTImageLoader class]]` by default lazily loads the requested NativeModule, but `[_bridge moduleForName:@"ImageLoader"]` doesn't. So, I had to explicitly set `lazilyLoadIfNecessary` to `YES` in all the call-sites I migrated, to ensure that ImageLoader is correctly initialized when necessary. Reviewed By: PeteTheHeat Differential Revision: D16948165 fbshipit-source-id: 434697637dfa5e32de1c398744f9c28c19a6fd94