Demonstration implementation of Image Preview technique - to achieve fast image previews immediately as placeholders, using around 200 bytes of image data.
Mechanism was described by Facebook in August 2015.
Demo is based on React Native 0.38 (at least) and dependencies described in package.json
file.
Build is pretty straightforward:
$ npm install
$ react-native run-ios
or
$ npm install
$ react-native run-android
That's it!
Preview below was prepared on 2G, high latency connection. Blurred preview is delivered immediately with article data (in GraphQL response), with 190 bytes JPG file (with 620 bytes of headers trimmed and added on clients side).