-
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
6ad71c1
commit d00313e
Showing
8 changed files
with
200 additions
and
47 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,74 @@ | ||
import React from 'react'; | ||
import { Text, TouchableOpacity, View } from 'react-native'; | ||
import { useNavigation } from '@react-navigation/native'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import BackArrow from 'src/assets/images/back-arrow.svg'; | ||
import Logo from 'src/assets/images/logo.svg'; | ||
import { colors } from 'src/styles/colors'; | ||
import LegalRights from '@/screens/LegalRights'; | ||
import VideoPage from '@/screens/LegalRights/VideoPage'; | ||
import { LegalStackParams } from '../types'; | ||
import styles from './styles'; | ||
|
||
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 | ||
screenOptions={{ | ||
headerShown: true, | ||
headerTitleAlign: 'left', | ||
headerTitle: '', | ||
headerStyle: { | ||
backgroundColor: colors.background, | ||
}, | ||
headerLeft: () => ( | ||
<Text | ||
style={{ | ||
fontSize: 20, | ||
fontWeight: 'bold', | ||
color: colors.orange, | ||
marginLeft: 10, | ||
}} | ||
> | ||
Legal Rights | ||
</Text> | ||
), | ||
headerRight: () => ( | ||
<View style={{ paddingRight: '2%' }}> | ||
<Logo /> | ||
</View> | ||
), | ||
}} | ||
> | ||
<LegalStack.Screen name="LegalRights" component={LegalRights} /> | ||
<LegalStack.Screen | ||
name="VideoPage" | ||
component={VideoPage} | ||
options={{ | ||
headerBackTitle: 'Legal Rights', | ||
headerTitle: '', | ||
headerLeft: () => <BackButton />, | ||
headerRight: () => ( | ||
<View style={{ paddingRight: '2%' }}> | ||
<Logo /> | ||
</View> | ||
), | ||
}} | ||
/> | ||
</LegalStack.Navigator> | ||
); | ||
function BackButton() { | ||
const navigation = useNavigation(); | ||
|
||
return ( | ||
<TouchableOpacity | ||
onPress={() => navigation.goBack()} | ||
style={styles.backContainer} | ||
> | ||
<BackArrow /> | ||
<Text style={styles.backText}>Legal Rights</Text> | ||
</TouchableOpacity> | ||
); | ||
} | ||
} |
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,18 +1,45 @@ | ||
import React from 'react'; | ||
import { Text, View } from 'react-native'; | ||
import { createNativeStackNavigator } from '@react-navigation/native-stack'; | ||
import Logo from 'src/assets/images/logo.svg'; | ||
import { colors } from 'src/styles/colors'; | ||
import SeekHelp from '@/screens/SeekHelp'; | ||
import { SeekHelpStackParams } from '../types'; | ||
|
||
const SeekHelpStack = createNativeStackNavigator<SeekHelpStackParams>(); | ||
|
||
export default function SeekHelpNavigator() { | ||
return ( | ||
<SeekHelpStack.Navigator> | ||
<SeekHelpStack.Screen | ||
name="SeekHelp" | ||
component={SeekHelp} | ||
|
||
/> | ||
<SeekHelpStack.Navigator | ||
screenOptions={{ | ||
headerShown: true, | ||
headerTitleAlign: 'left', | ||
headerTitle: '', | ||
|
||
headerLeft: () => ( | ||
<Text | ||
style={{ | ||
fontSize: 20, | ||
fontWeight: 'bold', | ||
color: colors.orange, | ||
marginLeft: 10, | ||
}} | ||
> | ||
Seek Help | ||
</Text> | ||
), | ||
headerStyle: { | ||
backgroundColor: colors.background, | ||
}, | ||
|
||
headerRight: () => ( | ||
<View style={{ paddingRight: '2%' }}> | ||
<Logo /> | ||
</View> | ||
), | ||
}} | ||
> | ||
<SeekHelpStack.Screen name="SeekHelp" component={SeekHelp} /> | ||
</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,17 @@ | ||
import { StyleSheet } from 'react-native'; | ||
import { colors } from 'src/styles/colors'; | ||
|
||
export default StyleSheet.create({ | ||
backContainer: { | ||
position: 'absolute', | ||
left: 0, | ||
flexDirection: 'row', | ||
alignItems: 'center', | ||
marginLeft: 0, | ||
}, | ||
|
||
backText: { | ||
fontSize: 17, | ||
color: colors.grey, | ||
}, | ||
}); |
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,4 +1,5 @@ | ||
export const colors = { | ||
orange: '#E37F1D', | ||
grey: '#757575', | ||
background: '#F7F9FC', | ||
}; |