Major refactoring: navigation does not break anymore. the user can now navigate between the tabs without loosing context
This commit is contained in:
parent
457b098883
commit
1beee68bff
23 changed files with 137 additions and 80 deletions
12
app/(tabs)/(budget)/_layout.tsx
Normal file
12
app/(tabs)/(budget)/_layout.tsx
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { Stack } from "expo-router";
|
||||
|
||||
export default function _Layout() {
|
||||
return (
|
||||
<Stack initialRouteName="index" screenOptions={{headerShown: false}}>
|
||||
<Stack.Screen name="index"/>
|
||||
<Stack.Screen name="addCategory" options={{presentation: "modal"}}/>
|
||||
<Stack.Screen name="editCategory" options={{presentation: "modal"}}/>
|
||||
<Stack.Screen name="category" options={{headerShown: false, animation: "slide_from_right"}}/>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
Reference in a new issue