-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
382 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,11 @@ | ||
import * as React from 'react'; | ||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | ||
import { NavigationContainer } from '@react-navigation/native'; | ||
import HealingResources from '@/HealingResources'; | ||
import Home from '@/screens/Home'; | ||
import LegalRights from '@/screens/LegalRights'; | ||
import SeekHelp from '@/screens/SeekHelp'; | ||
|
||
const Tab = createBottomTabNavigator(); | ||
import MainTabNav from '@/navigation/BottomTabNavigator'; | ||
|
||
export default function App() { | ||
return ( | ||
<NavigationContainer independent={true}> | ||
<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> | ||
<MainTabNav /> | ||
</NavigationContainer> | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import * as React from 'react'; | ||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; | ||
import HomeScreen from 'src/screens/Home/'; | ||
import HealingResourcesNavigator from './stacks/HealingResourcesNavigator'; | ||
import LegalRightsNavigator from './stacks/LegalRightsNavigator'; | ||
import SeekHelpNavigator from './stacks/SeekHelpNavigator'; | ||
import { BottomTabParamList } from './types'; | ||
|
||
const initialRouteName = 'Healing'; | ||
|
||
const Tab = createBottomTabNavigator<BottomTabParamList>(); | ||
|
||
export default function NavigationBar() { | ||
return ( | ||
<Tab.Navigator initialRouteName={initialRouteName}> | ||
<Tab.Screen | ||
name="Home" | ||
component={HomeScreen} | ||
options={{ | ||
tabBarLabel: 'Home', | ||
}} | ||
/> | ||
<Tab.Screen | ||
name="Healing" | ||
component={HealingResourcesNavigator} | ||
options={{ | ||
tabBarLabel: 'Healing Resources', | ||
}} | ||
/> | ||
<Tab.Screen | ||
name="Legal" | ||
component={LegalRightsNavigator} | ||
options={{ | ||
tabBarLabel: 'Legal Rights', | ||
}} | ||
/> | ||
<Tab.Screen | ||
name="Seek" | ||
component={SeekHelpNavigator} | ||
options={{ | ||
tabBarLabel: 'Seek Help', | ||
}} | ||
/> | ||
</Tab.Navigator> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import React from 'react'; | ||
import { NavigationContainer } from '@react-navigation/native'; | ||
import BottomTabNavigator from './BottomTabNavigator'; | ||
|
||
export default function AppNavigator() { | ||
return ( | ||
<NavigationContainer> | ||
<BottomTabNavigator /> | ||
</NavigationContainer> | ||
); | ||
} |
Oops, something went wrong.