-
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.
Charlottelaw/jdi 14 tab navigation (#12)
* navigation * got rid of unused files * CodyGarciaa/Legal-Rights-Prea-Pages (#13) * set up legal rights skeleton, can go to video page with nothing there yet tho * added video and testing player * more testing with video, lowk not getting .mp4 to work * legal rights page scrollable * added caption buttons, lowk still to add more to it * closed caption buttons are toggleable and XOR * finished pr * resolved philip's problems lol * 5 create resources sub pages (#15) * seek help to resource list * seek help to resource list * fixed some things * removed unused import --------- Co-authored-by: Philip Ye <[email protected]> Co-authored-by: philipye314 <[email protected]> * 8-healing-resource-pages (#19) * [feat] resources rendered and scrolling by buttons * good work arfa, minor adjustments --------- Co-authored-by: philipye314 <[email protected]> * [bug fix] removed extra type file * navigation * got rid of unused files * [fix] 🐐🐐🐐 * [fix] did screen props * deleted unused files --------- Co-authored-by: philipye314 <[email protected]> Co-authored-by: CodyGarciaa <[email protected]> Co-authored-by: angelinetu <[email protected]> Co-authored-by: Philip Ye <[email protected]> Co-authored-by: philipye314 <[email protected]> Co-authored-by: Arfa Momin <[email protected]>
- Loading branch information
1 parent
2f1e255
commit aafcee1
Showing
16 changed files
with
3,361 additions
and
1,244 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,33 +1,11 @@ | ||
import * as React from 'react'; | ||
import { NavigationContainer } from '@react-navigation/native'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import HealingResources from '@/screens/HealingResources'; | ||
import HealingCatalogue from '@/screens/HealingResources/HealingCatalogue'; | ||
import HFHGuide from '@/screens/HealingResources/HFHGuide'; | ||
import Home from '@/screens/Home'; | ||
import LegalRights from '@/screens/LegalRights/index'; | ||
import VideoPage from '@/screens/LegalRights/VideoPage'; | ||
import SeekHelp from '@/screens/SeekHelp'; | ||
import resourceList from '@/screens/SeekHelp/ResourceList'; | ||
|
||
const Stack = createNativeStackNavigator(); | ||
import NavigationBar from '@/navigation/BottomTabNavigator'; | ||
|
||
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.Screen | ||
name="Themed Healing Resources" | ||
component={HealingCatalogue} | ||
/> | ||
<Stack.Screen name="Hope for Healing Guide" component={HFHGuide} /> | ||
<Stack.Screen name="Resource List" component={resourceList} /> | ||
<Stack.Screen name="Video Page" component={VideoPage} /> | ||
</Stack.Navigator> | ||
<NavigationContainer> | ||
<NavigationBar /> | ||
</NavigationContainer> | ||
); | ||
} |
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,5 @@ | ||
import { Text } from 'react-native'; | ||
|
||
export default function HealingResources() { | ||
return <Text>HEALING!!!!</Text>; | ||
} |
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 was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import React from 'react'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import HealingResources from '@/screens/HealingResources'; | ||
import HealingCatalogue from '@/screens/HealingResources/HealingCatalogue'; | ||
import HFHGuide from '@/screens/HealingResources/HFHGuide'; | ||
import { HealingStackParams } from '../types'; | ||
|
||
const HealingStack = createNativeStackNavigator<HealingStackParams>(); | ||
|
||
export default function HealingResourcesNavigator() { | ||
return ( | ||
<HealingStack.Navigator> | ||
<HealingStack.Screen | ||
name="HealingResources" | ||
component={HealingResources} | ||
/> | ||
<HealingStack.Screen | ||
name="HealingCatalogue" | ||
component={HealingCatalogue} | ||
/> | ||
<HealingStack.Screen name="HopeForHealingGuide" component={HFHGuide} /> | ||
</HealingStack.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,16 @@ | ||
import React from 'react'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import LegalRights from '@/screens/LegalRights'; | ||
import VideoPage from '@/screens/LegalRights/VideoPage'; | ||
import { LegalStackParams } from '../types'; | ||
|
||
const LegalStack = createNativeStackNavigator<LegalStackParams>(); | ||
|
||
export default function LegalRightsNavigator() { | ||
return ( | ||
<LegalStack.Navigator> | ||
<LegalStack.Screen name="LegalRights" component={LegalRights} /> | ||
<LegalStack.Screen name="VideoPage" component={VideoPage} /> | ||
</LegalStack.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,16 @@ | ||
import React from 'react'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import SeekHelp from '@/screens/SeekHelp'; | ||
import ResourceList from '@/screens/SeekHelp/ResourceList'; | ||
import { SeekHelpStackParams } from '../types'; | ||
|
||
const SeekHelpStack = createNativeStackNavigator<SeekHelpStackParams>(); | ||
|
||
export default function SeekHelpNavigator() { | ||
return ( | ||
<SeekHelpStack.Navigator> | ||
<SeekHelpStack.Screen name="SeekHelp" component={SeekHelp} /> | ||
<SeekHelpStack.Screen name="ResourceList" component={ResourceList} /> | ||
</SeekHelpStack.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,5 @@ | ||
import { Button, Text, View } from 'react-native'; | ||
import { Text } from 'react-native'; | ||
|
||
export default function Home({ navigation }: { navigation: any }) { | ||
return ( | ||
<View> | ||
<Text>hello</Text> | ||
<Button | ||
title="Healing Resources" | ||
onPress={() => navigation.navigate('Healing Resources')} | ||
/> | ||
<Button | ||
title="Legal Rights" | ||
onPress={() => navigation.navigate('Legal Rights')} | ||
/> | ||
<Button | ||
title="Seek Help" | ||
onPress={() => navigation.navigate('Seek Help')} | ||
/> | ||
</View> | ||
); | ||
export default function HomeScreen() { | ||
return <Text>HOME!!!</Text>; | ||
} |
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