Début du projet Traintrape-moi

This commit is contained in:
2024-12-01 12:29:47 +01:00
commit a38027443e
35 changed files with 15702 additions and 0 deletions

10
client/app/_layout.tsx Normal file
View 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
View 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>
);
}