diff --git a/front/App.tsx b/front/App.tsx index 353a73a..f3c5996 100644 --- a/front/App.tsx +++ b/front/App.tsx @@ -1,33 +1,18 @@ -import { StatusBar } from 'expo-status-bar'; -import { Text, View, ColorValue } from 'react-native'; -import { Provider as PaperProvider, useTheme } from 'react-native-paper'; +import { NavigationContainer } from '@react-navigation/native'; +import { Provider as PaperProvider } from 'react-native-paper'; import Theme from './Theme'; +import { Stack, protectedRoutes, publicRoutes } from './Navigation'; -const ExampleBox = (props: { textColor: ColorValue, backgroundColor: ColorValue }) => ( - - Hello - -) - -export function AppContent() { - const { colors } = useTheme(); - return ( - - - - - - - - - - ); -} +const isAuthentified = true; export default function App() { return ( - + + + { isAuthentified ? protectedRoutes : publicRoutes } + + ); }