react-native/IntegrationTests
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
..
AppEventsTest.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
AsyncStorageTest.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
ImageCachePolicyTest.js Cache policy control for image source 2017-01-17 17:13:31 -08:00
ImageSnapshotTest.js Cleanup before image! codemod 2016-11-22 21:13:52 -08:00
IntegrationTestHarnessTest.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
IntegrationTestsApp.js Cache policy control for image source 2017-01-17 17:13:31 -08:00
LayoutEventsTest.js Fix up this pattern var React = require('react-native'); 2016-04-08 20:37:22 -07:00
LoggingTestModule.js Fix timing issues in RCTLoggingTests.m 2016-10-27 01:43:34 -07:00
PromiseTest.js Reverted commit D4027388 2016-10-16 04:13:42 -07:00
PropertiesUpdateTest.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
RCTRootViewIntegrationTestApp.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
ReactContentSizeUpdateTest.js Fix up this pattern var React = require('react-native'); 2016-04-08 20:37:22 -07:00
SimpleSnapshotTest.js Convert from React.createClass to ES6 classes 2016-07-26 01:13:31 -07:00
SizeFlexibilityUpdateTest.js Fix up this pattern var React = require('react-native'); 2016-04-08 20:37:22 -07:00
TimersTest.js RN: Update React (2/2) 2016-11-04 05:43:44 -07:00
WebSocketTest.js Add an integration test for WebSocket 2017-01-16 13:28:43 -08:00
blue_square.png Cleanup before image! codemod 2016-11-22 21:13:52 -08:00
launchWebSocketServer.command Add an integration test for WebSocket 2017-01-16 13:28:43 -08:00
red_square.png Cleanup before image! codemod 2016-11-22 21:13:52 -08:00
websocket_integration_test_server.js Add an integration test for WebSocket 2017-01-16 13:28:43 -08:00