Début du projet Traintrape-moi
This commit is contained in:
10
client/app/_layout.tsx
Normal file
10
client/app/_layout.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native'
|
||||
import { Stack } from "expo-router"
|
||||
import { useColorScheme } from '@/hooks/useColorScheme'
|
||||
|
||||
export default function RootLayout() {
|
||||
const colorScheme = useColorScheme()
|
||||
return <ThemeProvider value={colorScheme === 'dark' ? DarkTheme : DefaultTheme}>
|
||||
<Stack />
|
||||
</ThemeProvider>
|
||||
}
|
16
client/app/index.tsx
Normal file
16
client/app/index.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
import { View } from "react-native"
|
||||
import { ThemedText } from "@/components/ThemedText"
|
||||
|
||||
export default function Index() {
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
flex: 1,
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
}}
|
||||
>
|
||||
<ThemedText>Bienvue sur « Traintrape-moi » !</ThemedText>
|
||||
</View>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user