Skip to content

Commit

Permalink
修复TabView在安卓下不滚动的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaaoo committed Jun 29, 2023
1 parent e1c3168 commit 8d41bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion example/src/pages/TabViewExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const TabViewExample: React.FC<TabViewExampleProps> = (props) => {
style={[
styles.itemContainer,
{
height: height / 3 + 50,
height: height * 2,
},
{
backgroundColor: TabListColor[index],
Expand Down
1 change: 1 addition & 0 deletions src/components/TabView/TabView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const TabView = forwardRef<TabViewRef, TabViewProps>((props, ref) => {
}, []);

const panGesture = Gesture.Pan()
.activeOffsetX([-5, 5])
.onBegin(() => {
offsetX.value = translateX.value;
tabStatus.value = TabStatus.Moving;
Expand Down

0 comments on commit 8d41bed

Please sign in to comment.