-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
47 lines (43 loc) · 1.26 KB
/
App.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
40
41
42
43
44
45
46
47
import React from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
import HomeScreen from './Screens/HomeScreen';
import ChatScreen from './Screens/ChatScreen';
import ProfileScreen from './Screens/ProfileScreen';
import SettingScreen from './Screens/SettingScreen';
import AnimatedTabBar from './components/AnimatedTabBar';
const Tab = createBottomTabNavigator();
const TabNavigator = () => (
<Tab.Navigator
// tabBarOptions={{
// activeTintColor: '#e74c3c',
// }}
tabBar={props => <AnimatedTabBar {...props} activeColor="#e74c3c" />}>
<Tab.Screen
options={{iconName: 'home', title: 'Home'}}
name="Home"
component={HomeScreen}
/>
<Tab.Screen
name="Chat"
options={{iconName: 'chat', title: 'Home'}}
component={ChatScreen}
/>
<Tab.Screen
name="Profile"
options={{iconName: 'person', title: 'Home'}}
component={ProfileScreen}
/>
<Tab.Screen
name="Setting"
options={{iconName: 'settings', title: 'Home'}}
component={SettingScreen}
/>
</Tab.Navigator>
);
const App = () => (
<NavigationContainer>
<TabNavigator />
</NavigationContainer>
);
export default App;