We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d1f8fd commit bcfdd9cCopy full SHA for bcfdd9c
app/(tabs)/_layout.tsx
@@ -57,9 +57,8 @@ export default function TabLayout() {
57
tabPress: (e: { preventDefault: () => void }) => {
58
// If already on a permissions sub-page (not the index), navigate to permissions index
59
const isOnPermissionsSubPage = pathname.startsWith('/permissions/') && pathname !== '/permissions';
60
- const isOnPermissionsIndex = pathname === '/permissions' || pathname === '/(tabs)/permissions';
61
-
62
- if (isOnPermissionsSubPage || isOnPermissionsIndex) {
+
+ if (isOnPermissionsSubPage) {
63
// Prevent default tab behavior
64
e.preventDefault();
65
// Navigate to permissions index, replacing the current route to reset the stack
0 commit comments