Nick Lockwood 799168929c Unify XCAsset handling logic
Summary: @​public

This diff unifies the logic for detecting when images refer to XCAsset files into a single function (RCTXCAssetNameForURL) and uses it for both +[RCTConvert UIImage:] and RCTImageLoader.

I've also tightened the definition of XCAssets so that it only applies to images inside .car files, not any image inside the main bundle. This avoids using the +[UIImage imageNamed:] when not strictly necessary, which is desirable since that method is not thread-safe, and has undocumented caching behavior that is difficult to reason about.

Reviewed By: @javache

Differential Revision: D2526400

fb-gh-sync-id: 7199c2a44f1d55ff236d2c38a0a9368739b993d5
2015-10-12 04:15:27 -07:00
..
2015-09-18 15:04:28 -07:00
2015-09-18 15:04:28 -07:00
2015-10-12 04:15:27 -07:00
2015-09-02 09:17:20 -08:00
2015-03-26 06:32:01 -07:00
2015-09-28 04:23:26 -07:00
2015-09-18 15:04:28 -07:00
2015-09-18 15:04:28 -07:00
2015-09-18 15:04:28 -07:00
2015-05-20 18:26:36 -08:00
2015-09-22 10:46:26 -07:00
2015-09-23 12:09:25 -07:00
2015-03-26 06:32:01 -07:00
2015-10-12 04:15:27 -07:00
2015-10-12 04:15:27 -07:00