From 8d41bed8b67ed73464ee2a5d9cc38655278a6536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=B5=A9?= <303527871@qq.com> Date: Thu, 29 Jun 2023 16:26:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTabView=E5=9C=A8=E5=AE=89?= =?UTF-8?q?=E5=8D=93=E4=B8=8B=E4=B8=8D=E6=BB=9A=E5=8A=A8=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/src/pages/TabViewExample.tsx | 2 +- src/components/TabView/TabView.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/src/pages/TabViewExample.tsx b/example/src/pages/TabViewExample.tsx index 5883962..397d9bd 100644 --- a/example/src/pages/TabViewExample.tsx +++ b/example/src/pages/TabViewExample.tsx @@ -51,7 +51,7 @@ const TabViewExample: React.FC = (props) => { style={[ styles.itemContainer, { - height: height / 3 + 50, + height: height * 2, }, { backgroundColor: TabListColor[index], diff --git a/src/components/TabView/TabView.tsx b/src/components/TabView/TabView.tsx index c6e674b..99b3bb8 100644 --- a/src/components/TabView/TabView.tsx +++ b/src/components/TabView/TabView.tsx @@ -63,6 +63,7 @@ const TabView = forwardRef((props, ref) => { }, []); const panGesture = Gesture.Pan() + .activeOffsetX([-5, 5]) .onBegin(() => { offsetX.value = translateX.value; tabStatus.value = TabStatus.Moving;