-
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
Drzaln
committed
Jan 15, 2021
1 parent
a6d6d69
commit f03b6a6
Showing
9 changed files
with
205 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
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,15 @@ | ||
import * as React from 'react' | ||
import Svg, { Path } from 'react-native-svg' | ||
|
||
const Left = (props) => { | ||
return ( | ||
<Svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 31.494 31.494' {...props}> | ||
<Path | ||
d='M10.273 5.009a1.112 1.112 0 011.587 0 1.12 1.12 0 010 1.571l-8.047 8.047h26.554c.619 0 1.127.492 1.127 1.111s-.508 1.127-1.127 1.127H3.813l8.047 8.032c.429.444.429 1.159 0 1.587a1.112 1.112 0 01-1.587 0L.321 16.532a1.12 1.12 0 010-1.571l9.952-9.952z' | ||
fill='#fafafa' | ||
/> | ||
</Svg> | ||
) | ||
} | ||
|
||
export default Left |
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,31 @@ | ||
import React from 'react' | ||
import { View, Text } from 'react-native' | ||
import { View, Text, Pressable } from 'react-native' | ||
import Left from '../../assets/icons/Left' | ||
|
||
const Header = () => ( | ||
<View | ||
style={{ | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flexDirection: 'row', | ||
backgroundColor: '#030610', | ||
paddingVertical: 8 | ||
}}> | ||
<Text style={{ fontFamily: 'JuventusFans-Bold', color: '#FAFAFA', fontSize: 30 }}>JUVENTUS</Text> | ||
<Text style={{ fontFamily: 'Oswald-ExtraLight', color: '#FAFAFA', fontSize: 25 }}> TEAM</Text> | ||
</View> | ||
) | ||
const Header = ({ previous, navigation }) => { | ||
return ( | ||
<View | ||
style={{ | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flexDirection: 'row', | ||
backgroundColor: '#030610', | ||
paddingVertical: 8 | ||
}}> | ||
{previous ? ( | ||
<Pressable | ||
onPress={navigation.goBack} | ||
hitSlop={{ top: 16, bottom: 16, left: 16, right: 16 }} | ||
style={{ height: 20, width: 20, position: 'absolute', left: 16, top: 20 }}> | ||
<Left /> | ||
</Pressable> | ||
) : ( | ||
undefined | ||
)} | ||
<Text style={{ fontFamily: 'JuventusFans-Bold', color: '#FAFAFA', fontSize: 30 }}>JUVENTUS</Text> | ||
<Text style={{ fontFamily: 'Oswald-ExtraLight', color: '#FAFAFA', fontSize: 25 }}> TEAM</Text> | ||
</View> | ||
) | ||
} | ||
|
||
export default Header |
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
Oops, something went wrong.