react-native/Libraries/Image
EUROPE\laprosek 1658a4c080 Implement Image.queryCache on iOS (#18782)
Summary:
The API was available only on Android (with no mention to that effect in the docs, AFAICT).
This commit adds a simple iOS implementation based on NSURLCache. It should be possible to
query the decoded image cache as well to provide higher fidelity (i.e. "disk", "memory",
"decoded") if the caller passes size, scale, etc. in addition to the image URL, but it's
probably not worth the complexity. The assumption is that callers are interested in the
durability rather than performance aspect of the returned information.

Tested with RNTester on iPhone emulator.

[IOS] [ENHANCEMENT] [Image] - Implemented queryCache
Pull Request resolved: https://github.com/facebook/react-native/pull/18782

Differential Revision: D9411533

Pulled By: hramos

fbshipit-source-id: b430263959bb5f9b8ed9e28bb0a95f8879df881a
2018-08-20 16:17:18 -07:00
..
RCTImage.xcodeproj Update Xcode projects (#19574) 2018-06-19 23:48:12 -07:00
__tests__ Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
AssetRegistry.js Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
AssetSourceResolver.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Image.android.js Add flow suppressions to xplat android 2018-08-13 11:16:41 -07:00
Image.ios.js Implement Image.queryCache on iOS (#18782) 2018-08-20 16:17:18 -07:00
ImageBackground.js Unreverting Marketplace change for Inverted Color Ignorance 2018-07-10 11:17:28 -07:00
ImageEditor.js Typing View style as ViewStyleProp 2018-08-14 16:32:11 -07:00
ImageProps.js Typing View style as ViewStyleProp 2018-08-14 16:32:11 -07:00
ImageResizeMode.js Convert react-native-github/Libraries to let/const 2018-05-10 16:16:35 -07:00
ImageSource.js Image from createReactClass -> ES6 Class 2018-06-19 21:32:26 -07:00
ImageSourcePropType.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
ImageStore.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
ImageStylePropTypes.js Convert react-native-github/Libraries to let/const 2018-05-10 16:16:35 -07: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 Check return code from malloc (#20173) 2018-08-08 18:32:19 -07:00
RCTImageCache.h Update license headers for MIT license 2018-02-16 18:31:53 -08:00
RCTImageCache.m Revert D8978844: [react-native][PR] Performance improvement for loading cached images on iOS 2018-07-30 14:46:30 -07: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 Implement Image.queryCache on iOS (#18782) 2018-08-20 16:17:18 -07:00
RCTImageLoader.m Implement Image.queryCache on iOS (#18782) 2018-08-20 16:17:18 -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 Implement Image.queryCache on iOS (#18782) 2018-08-20 16:17:18 -07: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 Flow strictify possible files in RN core 2018-06-20 00:47:21 -07:00
nativeImageSource.js Remove @providesModule from all modules 2018-04-25 07:37:10 -07:00
resolveAssetSource.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00