-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp_navigation5.js
39 lines (34 loc) · 1.16 KB
/
App_navigation5.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
import * as React from 'react';
import {Text, View, SafeAreaView} from 'react-native';
import {NavigationContainer} from '@react-navigation/native';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
function HomeScreen() {
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
<Text>Home!</Text>
</View>
);
}
function SettingsScreen() {
return (
<View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>
<Text>Settings!</Text>
</View>
);
}
import pagesWdIndex from './pages/wd/index';
import pagesXxIndex from './pages/xx/index';
import pagesGcIndex from './pages/gc/index';
import pagesThlIndex from './pages/thl/index';
import pagesMessage from './pages/message/Message';
const Tab = createBottomTabNavigator();
export default function App() {
return (
<NavigationContainer>
<Tab.Navigator>
<Tab.Screen name="Home" component={pagesThlIndex}/>
<Tab.Screen name="Settings" component={pagesWdIndex}/>
</Tab.Navigator>
</NavigationContainer>
);
}