-
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
1 parent
77e0000
commit e3c5911
Showing
9 changed files
with
17,185 additions
and
2,636 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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,51 @@ | ||
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 { BottomTabParams } from './types'; | ||
|
||
const initialRouteName = 'Healing'; | ||
|
||
const Tab = createBottomTabNavigator<BottomTabParams>(); | ||
|
||
export default function NavigationBar() { | ||
return ( | ||
<Tab.Navigator | ||
initialRouteName={initialRouteName} | ||
screenOptions={{ | ||
headerShown: false, | ||
}} | ||
> | ||
<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,37 @@ | ||
import { MaterialBottomTabNavigationProp } from '@react-navigation/material-bottom-tabs'; | ||
import { NativeStackScreenProps } from '@react-navigation/native-stack'; | ||
|
||
export type LegalStackParams = { | ||
LegalRights: undefined; | ||
VideoPage: undefined; | ||
}; | ||
|
||
export type HealingStackParams = { | ||
HealingResources: undefined; | ||
HopeForHealingGuide: undefined; | ||
HealingCatalogue: undefined; | ||
}; | ||
|
||
export type SeekHelpStackParams = { | ||
SeekHelp: undefined; | ||
ResourceList: undefined; | ||
}; | ||
|
||
export type BottomTabParams = { | ||
Legal: undefined; | ||
Healing: undefined; | ||
Seek: undefined; | ||
Home: undefined; | ||
}; | ||
|
||
export type LegalScreenProps<T extends keyof LegalStackParams> = | ||
NativeStackScreenProps<LegalStackParams, T>; | ||
|
||
export type HealingScreenProps<T extends keyof HealingStackParams> = | ||
NativeStackScreenProps<HealingStackParams, T>; | ||
|
||
export type SeekHelpScreenProps<T extends keyof SeekHelpStackParams> = | ||
NativeStackScreenProps<SeekHelpStackParams, T>; | ||
|
||
export type BottomTabScreenProps<T extends keyof BottomTabParams> = | ||
MaterialBottomTabNavigationProp<BottomTabParams, T>; |
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
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