-
Notifications
You must be signed in to change notification settings - Fork 1
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
11 changed files
with
117 additions
and
7 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
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 { Stack } from 'expo-router'; | ||
|
||
function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
} | ||
|
||
export default StackLayout; |
Empty file.
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 { StyleSheet } from 'react-native'; | ||
|
||
const styles = StyleSheet.create({}); | ||
|
||
export default styles; |
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,11 @@ | ||
import { Stack } from 'expo-router'; | ||
|
||
function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
} | ||
|
||
export default StackLayout; |
Empty file.
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 { StyleSheet } from 'react-native'; | ||
|
||
const styles = StyleSheet.create({}); | ||
|
||
export default styles; |
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,47 @@ | ||
import { View, Text, Image, Pressable } from 'react-native'; | ||
import { router } from 'expo-router'; | ||
import { useEffect, useState } from 'react'; | ||
import Icon from '../../../assets/icons'; | ||
|
||
import styles from './styles'; | ||
import globalStyles from '../../styles/globalStyles'; | ||
import colors from '../../styles/colors'; | ||
import { useSession } from '../../utils/AuthContext'; | ||
|
||
export default function LibraryHeader() { | ||
const { user } = useSession(); | ||
const [username, setUsername] = useState(''); | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<View style={styles.horizontal}> | ||
<View style={styles.textContainer}> | ||
<Image | ||
style={styles.image} | ||
source={require('../../../assets/logo.png')} | ||
/> | ||
<View style={styles.username}> | ||
<Text style={globalStyles.h1}> | ||
{' '} | ||
{user?.user_metadata.username}{' '} | ||
</Text> | ||
</View> | ||
</View> | ||
|
||
<View> | ||
<Pressable onPress={() => router.push('/settings')}> | ||
<View> | ||
<Icon type="settings_gear" /> | ||
</View> | ||
</Pressable> | ||
</View> | ||
</View> | ||
|
||
<View style={{ flex: 1 }}> | ||
<Pressable> | ||
<Text>favorites</Text> | ||
</Pressable> | ||
</View> | ||
</View> | ||
); | ||
} |
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,31 @@ | ||
import { StyleSheet } from 'react-native'; | ||
import colors from '../../styles/colors'; | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
flexDirection: 'column', | ||
marginLeft: 0, | ||
paddingRight: 0, | ||
}, | ||
image: { | ||
height: 51, | ||
width: 51, | ||
borderRadius: 4, | ||
marginBottom: 12, | ||
}, | ||
textContainer: { | ||
flexDirection: 'row', | ||
}, | ||
username: { | ||
paddingLeft: 12, | ||
}, | ||
horizontal: { | ||
flex: 1, | ||
flexGrow: 1, | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
}, | ||
}); | ||
|
||
export default styles; |