react-native/Libraries/Network
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
..
RCTNetwork.xcodeproj Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
FormData.js [ReactNative] Use FbHttp for handling http requests from React Native. 2015-08-18 09:12:40 -07:00
NetInfo.js - Fix response variable from getCurrentReachability 2015-10-11 19:42:24 -07:00
RCTDownloadTask.h Refactored RCTImageDownloader to use RCTNetworking instead of a separate download system 2015-07-27 13:47:52 -08:00
RCTDownloadTask.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTHTTPRequestHandler.h Refactored networking logic out into RCTDownloadTask 2015-07-23 04:00:31 -08:00
RCTHTTPRequestHandler.m Unify XCAsset handling logic 2015-10-12 04:15:27 -07:00
RCTNetInfo.h Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
RCTNetInfo.m Rename RCTReachability to RCTNetInfo 2015-08-14 08:20:01 -08:00
RCTNetworking.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
RCTNetworking.h Refactored RCTImageDownloader to use RCTNetworking instead of a separate download system 2015-07-27 13:47:52 -08:00
RCTNetworking.m Added logic to detect text encoding for downloaded data 2015-09-16 10:25:06 -07:00
XMLHttpRequest.android.js Release React Native for Android 2015-09-14 18:13:39 +01:00
XMLHttpRequest.ios.js Fix null values in network requests 2015-08-14 05:16:02 -08:00
XMLHttpRequestBase.js Fix incorrect lowercase response headers set for XHR responses 2015-07-07 15:05:45 -08:00