-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: #18782 Differential Revision: D9411533 Pulled By: hramos fbshipit-source-id: b430263959bb5f9b8ed9e28bb0a95f8879df881a
- Loading branch information
1 parent
d846696
commit 1658a4c
Showing
5 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters