import React from 'react'; import { NavigationContainer } from '@react-navigation/native'; import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import { createStackNavigator } from '@react-navigation/stack'; import Ionicons from 'react-native-vector-icons/Ionicons'; import Monthly from './Monthly'; import Analy from './Analy'; import PostMoney from './PostMoney'; import MainScreen from './MainScreen'; import CalDetail from './CalDetail'; import DeptPage from './DeptPage'; import DeptDetails from './screens/DeptDetails'; import MemoPage from './MemoPage'; import MemoDetails from './screens/MemoDetails'; import EditOption from './EditOption'; import UpdatePage from './UpdatePage'; const Tab = createBottomTabNavigator(); const Stack = createStackNavigator(); function Home() { return ( ({ tabBarIcon: ({ focused, color, size }) => { let iconName; if (route.name === 'Main') { iconName = focused ? 'home' : 'home-outline'; } else if (route.name === 'Monthly') { iconName = focused ? 'calendar' : 'calendar-outline'; } else if (route.name === 'Analy') { iconName = focused ? 'bar-chart' : 'bar-chart-outline'; } return ; }, })} tabBarOptions={{ activeTintColor: '#bfd3f2', inactiveTintColor: 'gray', }}> ) } function App() { return ( ); } export default App;