-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
82 lines (79 loc) · 3.12 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import Main from './components/Main';
import Home from './components/Home';
import CGU from './components/CGU';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import {LogBox} from "react-native";
import Settings from "./components/Settings";
import {AddFriend} from "./components/Friends";
import {Scan} from "./components/Login";
import {GestureHandlerRootView} from 'react-native-gesture-handler';
const Stack = createNativeStackNavigator();
export default function App() {
LogBox.ignoreLogs([
'Constants.platform.ios.model has been deprecated in favor of expo-device\'s Device.modelName property. This API will be removed in SDK 45.',
'Possible Unhandled Promise Rejection'
]); // TODO: À retirer si tu sais d'où sa vient
return <GestureHandlerRootView style={{flex: 1}}>
<NavigationContainer>
<Stack.Navigator screenOptions={{
title: 'PROMATE', headerStyle: {
backgroundColor: 'green',
}, headerTintColor: '#fff', headerTitleStyle: {
fontWeight: 'bold',
fontSize: 20,
textAlign: 'center',
}, headerBackVisible: false,
}}>
<Stack.Group>
<Stack.Screen
name="Main"
component={Main}
/>
<Stack.Screen
name="Home"
component={Home}
/>
</Stack.Group>
<Stack.Group screenOptions={{
presentation: 'modal', headerStyle: {
backgroundColor: 'white',
}, headerTintColor: 'black', headerTitleStyle: {
fontWeight: 'bold',
}
}} headerBackButtonMenuEnabled>
<Stack.Screen
name="CGU"
component={CGU}
options={{headerTitle: "Conditions Générales d'Utilisation"}}
/>
<Stack.Screen
name="Settings"
component={Settings}
options={{headerTitle: "Paramètres"}}
/>
<Stack.Screen
name="AddFriend"
component={AddFriend}
options={{
headerShown: false, contentStyle: {
marginTop: 500,
},
}}
/>
<Stack.Screen
name="Scan"
component={Scan}
options={{
headerShown: false
}}
/>
</Stack.Group>
</Stack.Navigator>
</NavigationContainer>
</GestureHandlerRootView>;
}
export function test(...args) {
console.log(...args);
return true;
}