From d1c8769920cb87983180ab385311a99666984374 Mon Sep 17 00:00:00 2001 From: Alexander Pataridze Date: Wed, 23 Oct 2019 02:11:47 +0400 Subject: [PATCH] Add optional hardware texture rendering on Android --- readme.md | 1 + src/image-zoom/image-zoom.component.tsx | 2 +- src/image-zoom/image-zoom.type.ts | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index c497083..187d321 100644 --- a/readme.md +++ b/readme.md @@ -74,6 +74,7 @@ export default class App extends React.Component { | centerOn | { x: number, y: number, scale: number, duration: number } | if given this will cause the map to pan and zoom to the desired location | undefined | | enableSwipeDown | boolean | for enabling vertical movement if user doesn't want it | false | | false | | enableCenterFocus | boolean | for disabling focus on image center if user doesn't want it | true | +| useHardwareTextureAndroid | boolean | for disabling rendering to hardware texture on Android | true | | onSwipeDown | () => void | function that fires when user swipes down | null | | swipeDownThreshold | number | threshold for firing swipe down function | 230 | | minScale | number | minimum zoom scale | 0.6 | diff --git a/src/image-zoom/image-zoom.component.tsx b/src/image-zoom/image-zoom.component.tsx index ee8f78e..473d41e 100644 --- a/src/image-zoom/image-zoom.component.tsx +++ b/src/image-zoom/image-zoom.component.tsx @@ -665,7 +665,7 @@ export default class ImageViewer extends React.Component { }} {...this.imagePanResponder!.panHandlers} > - +