-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
62 lines (59 loc) · 2.52 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
60
61
62
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Welcome from '@/pages/Welcome';
import MainTab from '@/pages/Main';
import Login from '@/pages/Login';
import SearchProducts from '@/pages/Search';
import {ProductDetail, ProductList} from '@/pages/Product';
import Message from '@/pages/Mine/message/Message';
import Setting from '@/pages/Mine/setting/Setting';
import Address from '@/pages/Mine/Address/Address';
import EditAddress from '@/pages/Mine/Address/EditAddress';
import Focus from '@/pages/Mine/Focus/Focus';
import History from '@/pages/Mine/History/History';
import Collect from '@/pages/Mine/Collect/Collect';
import Order from '@/pages/Mine/Order/Order';
import Coupon from '@/pages/Mine/Coupon/Coupon';
import BrandList from '@/pages/Home/brand/BrandList';
import BrandDetail from '@/pages/Home/brand/BrandDetail';
import {Provider} from 'mobx-react';
import store from './src/store';
const Stack = createNativeStackNavigator();
/**
* 描述:启动页
* 作者:刘飞华
* 日期:2024/3/21 16:03
*/
function App(): React.JSX.Element {
return (
<Provider store={store}>
<NavigationContainer>
<Stack.Navigator
initialRouteName="Welcome"
screenOptions={{
headerShown: false,
}}>
<Stack.Screen name="Welcome" component={Welcome} />
<Stack.Screen name="MainTab" component={MainTab} />
<Stack.Screen name="Login" component={Login} />
<Stack.Screen name="SearchProducts" component={SearchProducts} />
<Stack.Screen name="ProductList" component={ProductList} />
<Stack.Screen name="ProductDetail" component={ProductDetail} />
<Stack.Screen name="Message" component={Message} />
<Stack.Screen name="Setting" component={Setting} />
<Stack.Screen name="Address" component={Address} />
<Stack.Screen name="EditAddress" component={EditAddress} />
<Stack.Screen name="Focus" component={Focus} />
<Stack.Screen name="History" component={History} />
<Stack.Screen name="Collect" component={Collect} />
<Stack.Screen name="Order" component={Order} />
<Stack.Screen name="Coupon" component={Coupon} />
<Stack.Screen name="BrandList" component={BrandList} />
<Stack.Screen name="BrandDetail" component={BrandDetail} />
</Stack.Navigator>
</NavigationContainer>
</Provider>
);
}
export default App;