-
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.
fixed (tabs) routing and added styles sheets
- Loading branch information
1 parent
6704b4b
commit 0e38260
Showing
9 changed files
with
217 additions
and
188 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,11 @@ | ||
import { Stack } from 'expo-router'; | ||
|
||
function StackLayout() { | ||
return ( | ||
<Stack> | ||
<Stack.Screen name="index" options={{ headerShown: false }} /> | ||
</Stack> | ||
); | ||
} | ||
|
||
export default StackLayout; |
8 changes: 4 additions & 4 deletions
8
src/app/(tabs)/mycontent.tsx → src/app/(tabs)/library/index.tsx
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,14 +1,14 @@ | ||
import { Text } from 'react-native'; | ||
import { SafeAreaView } from 'react-native-safe-area-context'; | ||
|
||
import globalStyles from '../../styles/globalStyles'; | ||
import globalStyles from '../../../styles/globalStyles'; | ||
|
||
function MyContentScreen() { | ||
function LibraryScreen() { | ||
return ( | ||
<SafeAreaView style={globalStyles.container}> | ||
<Text style={globalStyles.h1}>My Content</Text> | ||
<Text style={globalStyles.h1}>Library</Text> | ||
</SafeAreaView> | ||
); | ||
} | ||
|
||
export default MyContentScreen; | ||
export default LibraryScreen; |
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
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,48 @@ | ||
import { Dimensions, StyleSheet } from 'react-native'; | ||
|
||
const { width, height } = Dimensions.get('window'); | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: 'white', | ||
justifyContent: 'flex-start', | ||
paddingLeft: 24, | ||
paddingRight: 24, | ||
paddingTop: 20, | ||
gap: 14, | ||
}, | ||
searchContainer: { | ||
backgroundColor: 'transparent', | ||
borderRadius: 10, | ||
borderColor: 'transparent', | ||
padding: 0, | ||
marginBottom: 16, | ||
}, | ||
inputContainer: { | ||
backgroundColor: '#D9D9D9', | ||
margin: 0, | ||
borderRadius: 10, | ||
}, | ||
greyOverlay: { | ||
flex: 1, | ||
position: 'absolute', | ||
left: 0, | ||
top: 0, | ||
opacity: 0.2, | ||
backgroundColor: 'black', | ||
width, | ||
height, | ||
zIndex: 1, | ||
}, | ||
noOverlay: { | ||
flex: 1, | ||
position: 'absolute', | ||
left: 0, | ||
top: 0, | ||
width, | ||
height, | ||
}, | ||
}); | ||
|
||
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
Oops, something went wrong.