react-native/docs
Peter Salanki 52d8851fc8 Cache policy control for image source
Summary:
In the context of an app an image exists in three resolutions on the server: `thumb` (30px) `feed` (300px) `full` (900px). When looking at an individual item a user can come either from the feed, via a permalink or from other parts of the app. This allows a situation where the `feed` image might or might not already be loaded somewhere in the app. In the detail view I want to render `thumb` with a blur (to quickly display something), then the `feed` image if it exists to have something decent to display until `full` loads. However it is quite a waste to load the `feed` image if it isn't already in cache, and will slow down the time until `full` is loaded. It is possible to track the navigation from feed->detail and that the `feed` image has actually completed loading by the feed component however as component hierarchies grow this turns into quite a lot of prop passing and bad separation of concerns.

NSURLRequests accepts a [Cache Policy](https://developer.apple.com/reference/fo
Closes https://github.com/facebook/react-native/pull/10844

Differential Revision: D4425959

Pulled By: lacker

fbshipit-source-id: 679835439c761a2fc894f56eb6d744c036cf0b49
2017-01-17 17:13:31 -08:00
..
Accessibility.md Fixing typo in Accessibility documentation 2016-10-26 11:58:57 -07:00
AndroidBuildingFromSource.md Update AndroidBuildingFromSource.md 2016-12-16 09:58:35 -08:00
AndroidUIPerformance.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
Animations.md Added documentation on string interpolation to Animations doc 2016-10-15 17:43:54 -07:00
Colors.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
CommunicationIOS.md fix 'Integrating with Existing Apps guide ' url 2016-09-08 22:13:42 -07:00
Debugging.md Disable yellow box warnings based on environment variable 2017-01-13 12:28:31 -08:00
DirectManipulation.md Fix link broken. 2016-07-14 15:58:36 -07:00
GestureResponderSystem.md Docs: Revise language around mobile web 2016-12-07 10:43:48 -08:00
GettingStarted.md Updated Mac/Linux ANDROID_HOME path to include ${HOME} 2016-12-14 15:28:31 -08:00
HandlingTextInput.md Update HandlingTextInput.md 2016-11-06 20:28:30 -08:00
HandlingTouches.md Fix broken links in Handling Touches documentation 2016-07-21 14:58:31 -07:00
HeadlessJSAndroid.md FbHeadlessJsTaskService -> HeadlessJsTaskService 2016-11-10 02:43:40 -08:00
HeightAndWidth.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
Images.md Cache policy control for image source 2017-01-17 17:13:31 -08:00
IntegrationWithExistingApps.md IntegrationWithExsistingApps Android Update 2017-01-03 11:28:33 -08:00
IssueGuidelines.md Add instruction on how to have access to the bot in IssueGuidelines.md 2016-05-05 08:46:54 -07:00
JavaScriptEnvironment.md Fix a typo'd line 2016-10-19 16:29:00 -07:00
LayoutWithFlexbox.md Remove docs reference to incorrect align-items default 2016-12-08 10:28:36 -08:00
LinkingLibraries.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
MoreResources.md Rename Support to Help, and re-style to better guide users to help themselves 2016-09-21 16:43:38 -07:00
MoviesExample.json Fix typo and add comments to the example app 2015-03-27 20:44:20 +00:00
NativeComponentsAndroid.md add headless js guide 2016-10-12 06:28:35 -07:00
NativeComponentsIOS.md Update NativeComponentsIOS.md 2017-01-09 00:13:33 -08:00
NativeModulesAndroid.md typo (data -> intent) 2017-01-12 10:13:33 -08:00
NativeModulesIOS.md fix typo RTC to RCT 2017-01-13 18:58:23 -08:00
Navigation.md fix broken link 2016-07-26 21:43:46 -07:00
Networking.md Update networking documentation regarding Apple ATS. 2016-11-14 08:43:37 -08:00
Performance.md Add CLI basics in docs 2016-11-28 03:28:37 -08:00
PixelRatio.md Fix minor typo in PixelRatio.md 2017-01-10 01:28:26 -08:00
PlatformSpecificInformation.md Update PlatformSpecificInformation.md 2016-08-08 04:58:30 -07:00
Props.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
PullRequestGuidelines.md move templates to .github folder 2016-06-13 07:43:28 -07:00
RunningOnDevice.md Update Running on Device guide with correct iOS menu 2016-12-29 16:28:36 -08:00
RunningOnDeviceAndroid.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
RunningOnDeviceIOS.md Consolidate Running on Device (Android|iOS) Guides into one 2016-11-06 21:13:32 -08:00
RunningOnSimulatorIOS.md Updated Device Specifying Command 2016-11-14 08:59:24 -08:00
SignedAPKAndroid.md Update SignedAPKAndroid.md 2017-01-06 15:43:29 -08:00
State.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
Style.md Minor grammatical change with respect to camel casing. 2016-11-04 02:43:38 -07:00
Testing.md Improve Android testing scripts 2016-12-13 17:13:35 -08:00
Text.md Show an example of composition in the Text docs. 2016-08-18 22:13:38 -07:00
Timers.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
Troubleshooting.md Add alternative lsof command for killing a process running on port 8081. 2016-11-30 17:13:30 -08:00
Tutorial.md Make prev links work in guides and APIs. 2016-07-13 14:58:27 -07:00
UnderstandingCLI.md Update UnderstandingCLI.md 2017-01-06 08:28:25 -08:00
Upgrading.md New upgrading process, relying on Git 2016-11-28 08:28:35 -08:00
UsingAListView.md Update UsingAListView.md - Add flex:1 to View 2016-10-09 11:13:27 -07:00
UsingAScrollView.md Remove unnecessary View and add a space 2016-09-28 15:43:37 -07:00
UsingNavigators.md Update UsingNavigators.md 2016-11-22 10:13:31 -08:00