react-native/Libraries/Image
Dulmandakh b0fa3228a7 Implement Image.defaultSource property on Android
Summary:
This pull request implements Image.defaultSource property on Android, using Fresco (http://frescolib.org/docs/placeholder-failure-retry.html), which will show placeholder image (local asset) while loading remote image. Implementation code is almost same with loadingIndicatorSource, but without rotation.

This requires release or production to bundle local images in an APK file.

This provides feature parity with iOS.

Set Image.defaultSource on Android, and will show it while loading Image.source.

```JSX
<Image
  defaultSource={require('<path to image>')}
  source={{uri: '<url to remote image>'}}
  style={{ height: 300, width: 300 }}
/>
```

[ANDROID] [FEATURE] [IMAGE] - Image.defaultSource will show local image as placeholder while loading remote Image.source.
Closes https://github.com/facebook/react-native/pull/18588

Differential Revision: D7540489

Pulled By: himabindugadupudi

fbshipit-source-id: 908ceb659b3416e517bba64c76a31879d965ec09
2018-04-06 16:03:00 -07:00
..
RCTImage.xcodeproj Standardize project indentation settings on 2 spaces 2017-07-31 05:20:03 -07:00
__tests__ Update license headers for MIT license 2018-02-16 18:31:53 -08:00
AssetRegistry.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
AssetSourceResolver.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
Image.android.js Implement Image.defaultSource property on Android 2018-04-06 16:03:00 -07:00
Image.ios.js Move Image PropTypes to a new file 2018-03-14 14:12:31 -07:00
ImageBackground.js Fix typing of View refs 2018-03-08 14:35:54 -08:00
ImageEditor.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ImageProps.js Create Flow Props for Image 2018-03-14 14:12:31 -07:00
ImageResizeMode.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ImageSource.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ImageSourcePropType.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ImageStore.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
ImageStylePropTypes.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTGIFImageDecoder.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTGIFImageDecoder.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageBlurUtils.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageBlurUtils.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageCache.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageCache.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageEditingManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageEditingManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageLoader.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageLoader.m fix(RCTImageLoader): Adds `requiresMainQueueSetup` to fix v0.52 2018-04-03 16:41:43 -07:00
RCTImageShadowView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageShadowView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageStoreManager.h Update additional license headers 2018-03-08 12:10:14 -08:00
RCTImageStoreManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageUtils.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageUtils.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageView.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageView.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageViewManager.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageViewManager.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLocalAssetImageLoader.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTLocalAssetImageLoader.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTResizeMode.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTResizeMode.m Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RelativeImageStub.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
nativeImageSource.js Update license headers for MIT license 2018-02-16 18:31:53 -08:00
resolveAssetSource.js Make access to SourceCode Native Extension lazy 2018-03-19 09:33:31 -07:00