Skip to content

Instantly share code, notes, and snippets.

@dondragon2
Created March 10, 2017 14:56
Show Gist options
  • Save dondragon2/8714aa4b6855b6b0d29ba6ba6f1eaccb to your computer and use it in GitHub Desktop.
Save dondragon2/8714aa4b6855b6b0d29ba6ba6f1eaccb to your computer and use it in GitHub Desktop.
import { TabNavigator } from 'react-navigation';
import HomeScreen from '../screens/players';
import NotificationScreen from '../screens/notifications/NotificationScreen';
import ProfileScreen from '../screens/profile/ProfileScreen';
import GroupsScreen from '../screens/groups/GroupsScreen';
import Colors from '../constants/Colors';
export default TabNavigator({
Home: { screen: HomeScreen },
Groups: { screen: GroupsScreen },
Notifications: { screen: NotificationScreen },
Profile: { screen: ProfileScreen }
}, {
initialRouteName: 'Home',
headerMode: 'screen',
swipeEnabled: true,
animationEnabled: false,
tabBarPosition: 'bottom',
tabBarOptions: {
showLabel: false,
showIcon: true,
inactiveTintColor: Colors.blackBlueColor,
activeTintColor: Colors.redColor,
pressColor: Colors.redColor,
indicatorStyle: {
backgroundColor: Colors.redColor
},
style: {
backgroundColor: Colors.whiteColor
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment