react-native/Libraries/Image
Nick Lockwood f88bc3eb73 [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers)
Summary:
@public

This is a refactor of @philikon's original diff that decouples the dependencies between the Network and Image modules, and replaces RCTDataQueryExecutor with a more useful abstraction.

I've introduced the RCTURLRequestHandler protocol, which is a new type of bridge module used for loading data using an NSURLRequest. RCTURLRequestHandlers can be registered using RCT_EXPORT_MODULE() and are then available at runtime for use by the RCTDataManager, which will automatically select the appropriate handler for a given request based on the handler's self-reported capabilities.

The currently implemented handlers are:

- RCTHTTPRequestHandler - the standard open source HTTP request handler that uses NSURLSession
- RKHTTPRequestHandler - the internal FB HTTP request handler that uses FBNetworking
- RCTImageRequestHandler - a handler for loading local images from the iOS asset-library

Depends on D2108193

Test Plan:
- Internal apps still work
- OSS port still compiles, Movies app and a sample Parse app still work
- uploading image to Parse using the above code snippet works
- tested `FormData` with string and image parameters using http://www.posttestserver.com/
2015-06-09 12:27:06 -08:00
..
RCTImage.xcodeproj [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
__tests__ [ReactNative] Copy assets to corresponding folders on Android 2015-06-01 12:21:53 -08:00
AssetRegistry.js [ReactNative] Register assets with AssetRegistry 2015-05-07 17:27:42 -08:00
Image.ios.js Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
ImageResizeMode.js [react_native] JS files from D2009265: Fix resizeMode for images 2015-04-21 12:04:32 -08:00
ImageSource.js [ReactNative][MAdMan] Add type for image source, flowify AdsManagerObjectiveTypes 2015-04-06 10:32:42 -08:00
ImageStylePropTypes.js [ReactNative] Pull transform properties out into TransformPropTypes 2015-05-06 14:24:10 -08:00
RCTCameraRollManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTCameraRollManager.m [CameraRoll] support fetching videos from the camera roll 2015-06-01 15:57:32 -08:00
RCTGIFImage.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTGIFImage.m [ReactNative] Fix analyze errors on oss 2015-04-24 08:28:35 -08:00
RCTImageDownloader.h Optimised blending for translucent images with opaque background color + fixed cropping for images in cover/contain mode. 2015-05-22 07:19:06 -08:00
RCTImageDownloader.m [ReactNative] Allow uploading native files (e.g. photos) and FormData via XMLHttpRequest 2015-06-09 12:27:05 -08:00
RCTImageLoader.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTImageLoader.m [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTImageRequestHandler.h [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTImageRequestHandler.m [ReactNative] Refactor RCTDataManager to support pluggable data source modules (RCTURLRequestHandlers) 2015-06-09 12:27:06 -08:00
RCTNetworkImageView.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTNetworkImageView.m Optimised blending for translucent images with opaque background color + fixed cropping for images in cover/contain mode. 2015-05-22 07:19:06 -08:00
RCTNetworkImageViewManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTNetworkImageViewManager.m Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
RCTStaticImage.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTStaticImage.m [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTStaticImageManager.h [ReactNative] Expanded license on obj-c files 2015-03-23 13:18:29 -08:00
RCTStaticImageManager.m Removed deprecated RCT_EXPORT + code paths 2015-06-05 09:58:25 -08:00
resolveAssetSource.js [ReactNative] Copy assets to corresponding folders on Android 2015-06-01 12:21:53 -08:00