import React from 'react';
import { Button, Text, View } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome'
import { createStackNavigator, createBottomTabNavigator, createAppContainer } from 'react-navigation';
import HomeScreen from '../../src/view/home';
import SettingsScreen from '../../src/view/MyWallet';
const TabNavigator = createBottomTabNavigator({
HomeScreen: {
screen:HomeScreen,
navigationOptions: {
tabBarLabel: 'HomeScreen',
tabBarIcon: ({tintColor, activeTintColor}) => (
<Icon name="home" size={20} color={tintColor} />
)
},
},
SettingsScreen: {
screen:SettingsScreen,
navigationOptions: {
tabBarLabel: 'SettingsScreen',
tabBarIcon: ({tintColor, activeTintColor}) => (
<Icon name="plus" size={20} color={tintColor} />
)
},
},
});
export default createAppContainer(TabNavigator);
0 nhận xét:
Đăng nhận xét