-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
61 lines (51 loc) · 1.98 KB
/
App.js
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
import React from 'react'
import { NavigationContainer } from '@react-navigation/native';
import Login from './screens/#';
import Home from './screens/Home';
import Classified from './screens/Classified';
import EditClassified from './screens/EditClassified'
import InsertClassified from './screens/InsertClassified'
import {
createStackNavigator,
} from '@react-navigation/stack';
import # from './screens/#';
import ForgotPassword from './screens/forgotPassword'
import interceptor from './services/interceptor'
import stylesColor from './style/colorApp'
const Stack = createStackNavigator();
const MyTheme = {
dark: false,
colors: {
primary: stylesColor.primaryColor,
card: stylesColor.secondaryColor,
text: stylesColor.primaryColor,
border: stylesColor.secondaryColor,
notification: stylesColor.primaryColor,
},
};
function MyStack() {
return (
<Stack.Navigator
screenOptions={{
gestureEnabled: false,
}}
activeColor="green"
presentation="modal">
<Stack.Screen options={{headerShown: false,}} name="Login" component={Login} />
<Stack.Screen options={{headerShown: false,}} name="Home" component={Home} />
<Stack.Screen options={{gestureEnabled: true, headerShown: false,}}name="#" component={#} />
<Stack.Screen options={{gestureEnabled: true, headerShown: false,}} name="ForgotPassword" component={ForgotPassword} />
<Stack.Screen options={{gestureEnabled: true, headerShown: false,}} name="Classified" component={Classified} />
<Stack.Screen options={{gestureEnabled: true, headerShown: false,}} name="EditClassified" component={EditClassified} />
<Stack.Screen options={{gestureEnabled: true, headerShown: false,}} name="InsertClassified" component={InsertClassified} />
</Stack.Navigator>
);
}
export default function App() {
interceptor.refresh()
return (
<NavigationContainer theme={MyTheme}>
<MyStack />
</NavigationContainer>
);
}