-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
59 lines (52 loc) · 1.75 KB
/
App.tsx
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
// import 'expo-dev-client';
import 'react-native-gesture-handler';
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { Provider } from 'react-redux';
import { store } from './app/store';
import { Routes } from './app/screens/routes';
import { createStackNavigator } from '@react-navigation/stack';
import RegisterClient from './app/screens/Customer/RegisterClient';
import NewProduct from './app/screens/Products/NewProduct';
import { NewRequest } from './app/screens/Requests/NewRequest';
import { DetalhesProduto } from './app/screens/Products/DetailsProducts';
const Stack = createStackNavigator()
function App() {
return (
<NavigationContainer>
<Provider store={store}>
<Stack.Navigator >
<Stack.Screen name='Home' component={Routes} />
<Stack.Screen
options={{
headerBackTitleVisible: false,
headerTitle: 'Cadastro de cliente'
}}
name='Register'
component={RegisterClient} />
<Stack.Screen
options={{
headerBackTitleVisible: false,
headerTitle: 'Cadastro de produto'
}}
name='NewProduct'
component={NewProduct} />
<Stack.Screen
options={{
headerBackTitleVisible: false,
headerTitle: 'Cadastro de pedidos'
}}
name='NewRequest'
component={NewRequest}
/>
<Stack.Screen
name="DetalhesProduto"
component={DetalhesProduto}
options={{ headerShadowVisible:false, headerTitle:'' }}
/>
</Stack.Navigator>
</Provider>
</NavigationContainer>
);
}
export default App;