123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // @flow
- import variable from './../variables/platform';
- export default (variables /* : * */ = variable) => {
- const tabBarTheme = {
- '.tabIcon': {
- height: undefined
- },
- '.vertical': {
- height: 60
- },
- 'NativeBase.Button': {
- '.transparent': {
- 'NativeBase.Text': {
- fontSize: variables.tabFontSize,
- color: variables.sTabBarActiveTextColor,
- fontWeight: '400'
- },
- 'NativeBase.IconNB': {
- color: variables.sTabBarActiveTextColor
- }
- },
- 'NativeBase.IconNB': {
- color: variables.sTabBarActiveTextColor
- },
- 'NativeBase.Text': {
- fontSize: variables.tabFontSize,
- color: variables.sTabBarActiveTextColor,
- fontWeight: '400'
- },
- '.isTabActive': {
- 'NativeBase.Text': {
- fontWeight: '900'
- }
- },
- flex: 1,
- alignSelf: 'stretch',
- alignItems: 'center',
- justifyContent: 'center',
- borderRadius: null,
- borderBottomColor: 'transparent',
- backgroundColor: variables.tabBgColor
- },
- height: 45,
- flexDirection: 'row',
- justifyContent: 'space-around',
- borderWidth: 1,
- borderTopWidth: 0,
- borderLeftWidth: 0,
- borderRightWidth: 0,
- borderBottomColor: '#ccc',
- backgroundColor: variables.tabBgColor
- };
- return tabBarTheme;
- };
|