From 48e62fcd643d4dbf9e719dd21cc2d95947bd5435 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Mon, 21 May 2018 21:21:34 -0700 Subject: [PATCH] Add PJPEG example to docs --- .../1-components/Image/examples/PropSource.js | 48 +++++++++++-------- .../Image/examples/StaticGetSize.js | 8 ++-- .../1-components/Image/sources/index.js | 3 ++ 3 files changed, 35 insertions(+), 24 deletions(-) diff --git a/website/storybook/1-components/Image/examples/PropSource.js b/website/storybook/1-components/Image/examples/PropSource.js index 75d91d38..43995f50 100644 --- a/website/storybook/1-components/Image/examples/PropSource.js +++ b/website/storybook/1-components/Image/examples/PropSource.js @@ -7,28 +7,36 @@ import React from 'react'; import { Image, StyleSheet, Text, View } from 'react-native'; const ImageSourceExample = () => ( - - - Static image - + + + + Static image + + + + Progressive JPEG + + + + Animated GIF + + - - Animated GIF - + + + PNG (base64) + + + + SVG (base64) + + + + SVG (inline data) + + - - PNG (base64) - - - - SVG (base64) - - - - SVG (inline data) - - - + ); const styles = StyleSheet.create({ diff --git a/website/storybook/1-components/Image/examples/StaticGetSize.js b/website/storybook/1-components/Image/examples/StaticGetSize.js index 5e98dc46..1e346a05 100644 --- a/website/storybook/1-components/Image/examples/StaticGetSize.js +++ b/website/storybook/1-components/Image/examples/StaticGetSize.js @@ -26,7 +26,7 @@ class ImageGetSizeExample extends PureComponent { {showButton ? ( -