patch to make swipe to close less aggressive
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
diff --git a/node_modules/react-native-image-viewing/dist/components/ImageItem/ImageItem.ios.js b/node_modules/react-native-image-viewing/dist/components/ImageItem/ImageItem.ios.js
|
||||
index 0708505..e523f7b 100644
|
||||
--- a/node_modules/react-native-image-viewing/dist/components/ImageItem/ImageItem.ios.js
|
||||
+++ b/node_modules/react-native-image-viewing/dist/components/ImageItem/ImageItem.ios.js
|
||||
@@ -12,7 +12,7 @@ import useImageDimensions from "../../hooks/useImageDimensions";
|
||||
import { getImageStyles, getImageTransform } from "../../utils";
|
||||
import { ImageLoading } from "./ImageLoading";
|
||||
const SWIPE_CLOSE_OFFSET = 75;
|
||||
-const SWIPE_CLOSE_VELOCITY = 1.55;
|
||||
+const SWIPE_CLOSE_VELOCITY = 1;
|
||||
const SCREEN = Dimensions.get("screen");
|
||||
const SCREEN_WIDTH = SCREEN.width;
|
||||
const SCREEN_HEIGHT = SCREEN.height;
|
||||
Reference in New Issue
Block a user