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
|
|
@ -35,30 +35,25 @@ export default function Layout() {
|
|||
|
||||
return (
|
||||
<Tabs sceneContainerStyle={styles.sceneContainer} screenOptions={screenOptions}>
|
||||
<Tabs.Screen name="budget" options={
|
||||
<Tabs.Screen name="(budget)" options={
|
||||
{
|
||||
tabBarLabel: "Budget",
|
||||
tabBarIcon: ({size, color}) => (
|
||||
<FontAwesome name="money" size={size} color={color}/>),
|
||||
unmountOnBlur: true,
|
||||
href: "(tabs)/budget"
|
||||
}
|
||||
}/>
|
||||
<Tabs.Screen name="home" options={
|
||||
<Tabs.Screen name="(home)" options={
|
||||
{
|
||||
tabBarLabel: "Home",
|
||||
tabBarIcon: ({size, color}) => (
|
||||
<FontAwesome name="home" size={size} color={color}/>),
|
||||
unmountOnBlur: true,
|
||||
href: "(tabs)/home/"
|
||||
}
|
||||
}/>
|
||||
<Tabs.Screen name="stats/index" options={
|
||||
<Tabs.Screen name="(stats)/index" options={
|
||||
{
|
||||
tabBarLabel: "Stats",
|
||||
tabBarIcon: ({size, color}) => (
|
||||
<FontAwesome name="bar-chart" size={size} color={color}/>),
|
||||
unmountOnBlur: true,
|
||||
}
|
||||
}/>
|
||||
</Tabs>
|
||||
|
|
|
|||
Reference in a new issue