-
Notifications
You must be signed in to change notification settings - Fork 0
/
Routes.tsx
36 lines (30 loc) · 951 Bytes
/
Routes.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
import React from 'react';
import {DefaultTheme, NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
import HomeScreen from './HomeScreen';
import AccountScreen from './AccountScreen';
const Stack = createNativeStackNavigator();
const Tab = createBottomTabNavigator();
const Routes = () => {
return (
<NavigationContainer theme={MyTheme}>
<Tab.Navigator initialRouteName={"HOME_SCREEN"}>
<Tab.Screen
name={"HOME_SCREEN"}
component={HomeScreen}
options={{title: "Home" }}
/>
<Tab.Screen
name={"PROFILE_SCREEN"}
component={AccountScreen}
options={{title: "Account" }}
/>
</Tab.Navigator>
</NavigationContainer>
);
};
export default Routes;
const MyTheme = {
...DefaultTheme,
};