react-native/Libraries/Image
Andrei Coman 617a38d984 Support multi sources for images
Summary:
This adds support for specifying multiple sources for an image component, so that native can choose the best one based on the flexbox-computed size of the image.
The API is as follows: the image component receives in the `source` prop an array of objects of the type `{uri, width, height}`. On the native side, the native component will wait for the layout pass to receive the width and height of the image, and then parse the array to find the best fitting one. For now, this does not support local resources, but it will be added soon.
To see how this works and play with it, there's an example called `MultipleSourcesExample` under `ImageExample` In UIExplorer.

Reviewed By: foghina

Differential Revision: D3364550

fbshipit-source-id: 66c5aeb2794f2ffeff8da39a9c0b95155fb2d41f
2016-06-13 14:13:25 -07:00
..
RCTImage.xcodeproj iOS: Enable views to be nested within <Text> 2016-05-31 10:28:25 -07:00
__tests__ Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
AssetRegistry.js
AssetSourceResolver.js Fixes OSS build: haste module -> commonJS invariant 2016-03-16 06:57:26 -07:00
GlobalImageStub.js
Image.android.js Support multi sources for images 2016-06-13 14:13:25 -07:00
Image.ios.js Simplified Image.js 2016-06-07 05:43:28 -07:00
ImageEditor.js CHORE - Remove Trailing Spaces 2016-04-06 09:21:53 -07:00
ImageResizeMode.js Add center ImageResizeMode option 2016-03-19 11:25:24 -07:00
ImageSource.js Fix flow errors 2015-12-31 07:48:29 -08:00
ImageSourcePropType.js iOS: Support HTTP headers for source prop on <Image> components 2016-06-01 10:43:28 -07:00
ImageStore.js Open sourced <ImageEditor>, <ImageStore> for Android 2016-01-27 10:50:54 -08:00
ImageStylePropTypes.js Fix tintColor prop platform in Image 2016-05-09 15:29:24 -07:00
RCTGIFImageDecoder.h
RCTGIFImageDecoder.m Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTImageBlurUtils.h Add blur effect to RCTImageView 2016-03-17 12:25:40 -07:00
RCTImageBlurUtils.m Add blur effect to RCTImageView 2016-03-17 12:25:40 -07:00
RCTImageEditingManager.h
RCTImageEditingManager.m iOS: Support HTTP headers for source prop on <Image> components 2016-06-01 10:43:28 -07:00
RCTImageLoader.h Simplified Image.js 2016-06-07 05:43:28 -07:00
RCTImageLoader.m Fix missing images 2016-06-09 09:58:31 -07:00
RCTImageStoreManager.h
RCTImageStoreManager.m Replaced isMainThread checks with a proper test for main queue 2016-06-06 07:58:36 -07:00
RCTImageUtils.h Removed placeholder image logic 2016-04-25 03:31:19 -07:00
RCTImageUtils.m Removed placeholder image logic 2016-04-25 03:31:19 -07:00
RCTImageView.h iOS: Enable views to be nested within <Text> 2016-05-31 10:28:25 -07:00
RCTImageView.m Fix typo 2016-06-09 16:28:24 -07:00
RCTImageViewManager.h
RCTImageViewManager.m Simplified Image.js 2016-06-07 05:43:28 -07:00
RCTResizeMode.h Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTResizeMode.m Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RCTXCAssetImageLoader.h
RCTXCAssetImageLoader.m Generalized image decoding and resizing logic 2016-01-20 11:11:13 -08:00
RelativeImageStub.js
resolveAssetSource.js Introduce custom asset resolver to resolveAssetSource(..) 2016-03-15 20:20:27 -07:00