fixed swipe on material top tabs

This commit is contained in:
DocNR 2025-02-13 13:17:29 -05:00
parent 8c7db4e778
commit b3cca43769
3 changed files with 10 additions and 6 deletions

View File

@ -49,8 +49,10 @@ export default function LibraryScreen() {
tabBarIndicatorStyle: {
backgroundColor: colors.text,
},
tabBarStyle: { backgroundColor: colors.card }
}}
tabBarStyle: { backgroundColor: colors.card },
swipeEnabled: true, // Enable swipe navigation
animationEnabled: true, // Enable animations when swiping
lazy: true }}
>
<Tab.Screen
name="exercises"

2
package-lock.json generated
View File

@ -54,7 +54,7 @@
"react-dom": "18.3.1",
"react-native": "0.76.7",
"react-native-gesture-handler": "~2.20.2",
"react-native-pager-view": "^6.5.1",
"react-native-pager-view": "6.5.1",
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.4.0",

View File

@ -15,7 +15,9 @@
"expo": {
"doctor": {
"reactNativeDirectoryCheck": {
"exclude": ["lucide-react-native"],
"exclude": [
"lucide-react-native"
],
"listUnknownPackages": false
}
}
@ -66,7 +68,7 @@
"react-dom": "18.3.1",
"react-native": "0.76.7",
"react-native-gesture-handler": "~2.20.2",
"react-native-pager-view": "^6.5.1",
"react-native-pager-view": "6.5.1",
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.4.0",
@ -85,4 +87,4 @@
"typescript": "^5.3.3"
},
"private": true
}
}