mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
edb6fa7979
Summary: The method `imageURLLoaderForURL` can be called from multiple threads. This adds a mutex to make sure that _loaders is initialized with a non-nil value only once. We'll only lock this mutex at one point in time as long as `_loadersProvider()` gives a value, so the mutex doesn't affect performance. Changelog: [iOS][Fixed] Synchronize RCTImageLoader loaders initialization Reviewed By: fkgozali Differential Revision: D24513083 fbshipit-source-id: b89ef8a82729eda508162b01f7fdaa8a291f40d0