From 71b0ab9dc0586e321359dc97401543806016ef56 Mon Sep 17 00:00:00 2001 From: Widiana Putra Date: Fri, 16 Dec 2022 11:58:40 +0800 Subject: [PATCH] bugfix slider inside modal --- index.tsx | 2 +- package-lock.json | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 package-lock.json diff --git a/index.tsx b/index.tsx index 37163ae..eb415c6 100644 --- a/index.tsx +++ b/index.tsx @@ -188,7 +188,7 @@ const Slider: React.FC = ({ const {panHandlers} = useMemo( () => PanResponder.create({ - onStartShouldSetPanResponderCapture: falseFunc, + onStartShouldSetPanResponderCapture: trueFunc, onMoveShouldSetPanResponderCapture: falseFunc, onPanResponderTerminationRequest: falseFunc, onPanResponderTerminate: trueFunc, diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..498afa2 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,14 @@ +{ + "name": "rn-range-slider", + "version": "2.2.2", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "rn-range-slider", + "version": "2.2.2", + "license": "MIT", + "devDependencies": {} + } + } +}