From 339d7b74126363174aa3b58849acd9ac3c55bf65 Mon Sep 17 00:00:00 2001 From: Pitipat Srichairat Date: Wed, 22 Feb 2017 18:45:50 +0700 Subject: [PATCH] docs(clickToZoom): add image preview for clickToZoom --- README.md | 1 + dev/containers/App.js | 2 +- src/index.js | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fcf6f10..3edf6e2 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,7 @@ all normal `` props can be used - scale = 1, the image will cover the whole area precisely. - `clickToZoom` (Boolean: default = false) if true then user can click to zoomIn - `zoomInScale` determine value of zoomed-in scale when clickToZoom +![img](http://i.giphy.com/3o84TYe7Y9yOFHFnIQ.gif) Note: If you do not provide resizeMode, `` will just render normal `` diff --git a/dev/containers/App.js b/dev/containers/App.js index 1c26e9b..2f48f8f 100644 --- a/dev/containers/App.js +++ b/dev/containers/App.js @@ -18,7 +18,7 @@ export default class App extends Component { <BetterImg scale={1} focalPoint="50% 50%"/>