Skip to content

Commit

Permalink
navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlotteLaw committed Oct 6, 2024
1 parent ca5e439 commit da3f451
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 177 deletions.
16 changes: 8 additions & 8 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
import * as React from 'react';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import HealingResources from '@/HealingResources';
import Home from '@/Home';
import LegalRights from '@/LegalRights';
import SeekHelp from '@/SeekHelp';

const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator();

export default function App() {
return (
<NavigationContainer independent={true}>
<Stack.Navigator initialRouteName="Home">
<Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Healing Resources" component={HealingResources} />
<Stack.Screen name="Legal Rights" component={LegalRights} />
<Stack.Screen name="Seek Help" component={SeekHelp} />
</Stack.Navigator>
<Tab.Navigator initialRouteName="Home">
<Tab.Screen name="Home" component={Home} />
<Tab.Screen name="Legal Rights" component={LegalRights} />
<Tab.Screen name="Healing Resources" component={HealingResources} />
<Tab.Screen name="Seek Help" component={SeekHelp} />
</Tab.Navigator>
</NavigationContainer>
);
}
Loading

0 comments on commit da3f451

Please sign in to comment.