react-native/Libraries/Image
Geoffrey Goh e730a9fdd0 Load assets from same folder as JSbundle (Android)
Summary:
https://github.com/facebook/react-native/issues/3679 was only partially fixed as the behaviour only works on iOS. This implements the same behaviour for Android. If the JSBundle was loaded from the assets folder, this will load images from the built-in resources. Else, load the image from the same folder as the JS bundle.

EDIT: For added clarity:

On iOS,
Bundle Location: 'file:///Path/To/Sample.app/main.bundle'
httpServerLocation: '/assets/module/a/'
Name: 'logo'
type: 'png'
**Resolved Asset location: '/Path/To/Sample.app/assets/module/a/logo.png'**

On Android,
Bundle Location: 'file:///sdcard/Path/To/main.bundle'
httpServerLocation: '/assets/module/a/',
name: 'logo'
type: 'png'
**Resolved Asset location: 'file:///sdcard/Path/To/drawable_mdpi/module_a_logo.png'**
Closes https://github.com/facebook/react-native/pull/4527

Reviewed By: svcscm

Differential Revision: D2788005

Pulled By: mkonicek

fb-gh-sync-id: 3f6462a7ee6370a92dd6727ac422c5de346c3ff1
2016-01-06 08:46:35 -08:00
..
RCTImage.xcodeproj Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
__tests__ Load assets from same folder as JSbundle (Android) 2016-01-06 08:46:35 -08:00
AssetRegistry.js [ReactNative] Teach flow how to deal with images 2015-08-26 18:26:09 -08:00
GlobalImageStub.js Removed references to isStatic from the codebase 2015-10-13 06:44:30 -07:00
Image.android.js Make style property available in Image.android.js like Image.ios.js 2015-12-07 10:47:28 -08:00
Image.ios.js Update references to `image!` to use require syntax 2016-01-04 07:41:27 -08:00
ImageEditor.js Added JS wrappers for ImageStore and ImageEditor 2015-12-23 10:08:07 -08:00
ImageResizeMode.js Bugfix - Typos 2015-12-15 09:09:32 -08:00
ImageSource.js Fix flow errors 2015-12-31 07:48:29 -08:00
ImageStore.js Added JS wrappers for ImageStore and ImageEditor 2015-12-23 10:08:07 -08:00
ImageStylePropTypes.js Added ColorPropType 2015-12-23 10:08:38 -08:00
RCTGIFImageDecoder.h Added RCTDataRequestHandler 2015-10-19 09:07:06 -07:00
RCTGIFImageDecoder.m Replaced RCTSparseArray with NSDictionary 2015-11-14 10:28:28 -08:00
RCTImageEditingManager.h [React Native] open source ImageEditingManager native module 2015-07-29 15:57:48 -08:00
RCTImageEditingManager.m Added JS wrappers for ImageStore and ImageEditor 2015-12-23 10:08:07 -08:00
RCTImageLoader.h Added getImageSize method 2015-12-31 18:51:30 -08:00
RCTImageLoader.m Added getImageSize method 2015-12-31 18:51:30 -08:00
RCTImageStoreManager.h RTCImageStoreManager uses NSData instead of UIImage 2015-11-17 09:55:31 -08:00
RCTImageStoreManager.m Added JS wrappers for ImageStore and ImageEditor 2015-12-23 10:08:07 -08:00
RCTImageUtils.h RCTImageUtils Obj-C nullability annotations 2016-01-06 03:55:30 -08:00
RCTImageUtils.m RCTImageUtils Obj-C nullability annotations 2016-01-06 03:55:30 -08:00
RCTImageView.h Added RCTImageSource 2015-12-08 03:32:30 -08:00
RCTImageView.m Fixed image tinting 2015-12-10 09:09:30 -08:00
RCTImageViewManager.h Merged RCTNetworkImageView functionality into RCTStaticImage 2015-07-17 07:43:16 -08:00
RCTImageViewManager.m Added getImageSize method 2015-12-31 18:51:30 -08:00
RCTShadowVirtualImage.h Added RCTImageSource 2015-12-08 03:32:30 -08:00
RCTShadowVirtualImage.m Added RCTImageSource 2015-12-08 03:32:30 -08:00
RCTVirtualImageManager.h Implemented inline image support for <Text> 2015-10-08 11:56:25 -07:00
RCTVirtualImageManager.m Added RCTImageSource 2015-12-08 03:32:30 -08:00
RCTXCAssetImageLoader.h Unify XCAsset handling logic 2015-10-12 04:15:27 -07:00
RCTXCAssetImageLoader.m Improved threading for image loader 2015-10-20 05:02:23 -07:00
RelativeImageStub.js [ReactNative] Teach flow how to deal with images 2015-08-26 18:26:09 -08:00
resolveAssetSource.js Load assets from same folder as JSbundle (Android) 2016-01-06 08:46:35 -08:00