TabNavigator-extra Polsterung

Wie Stil der TabNavigator Tab height und padding? Im das tun Sie Folgendes:

import Icon from "react-native-vector-icons/MaterialIcons";
const tabNav = TabNavigator({
  TabItem1: {
      screen: MainScreen,
      navigationOptions: {
          tabBarLabel:"Home",
          tabBarIcon: ({ tintColor }) => <Icon name={"home"} size={20} color={tintColor} />
      }
    },
    TabItem2: {
      screen: MainScreen,
      navigationOptions: {
        tabBarLabel:"Home",
        tabBarIcon: ({ tintColor }) => <Icon name={"home"} size={30} color={tintColor}  />
      }
    },
    TabItem3: {
      screen: MainScreen,
      navigationOptions: {
        tabBarLabel:"Browse",
        tabBarIcon: ({ tintColor }) => <Icon name={"home"} color={tintColor} />
      }
    }
}, {
    tabBarPosition: 'bottom',
    tabBarOptions: {
        activeTintColor: '#222',
        activeBackgroundColor :'yellow',  //Doesn't work
        showIcon: true,
        tabStyle: {
            padding: 0, margin:0,   //Padding 0 here
        },
    iconStyle: {
        width: 30,
        height: 30,
        padding:0       //Padding 0 here
    },
    }
});

TabNavigator-extra Polsterung

Wie kann ich loswerden der Abstand zwischen dem Symbol und der Beschriftung? Ich habe padding:0 im iconStyle und auch in tabStyle aber kein Glück. Ich will keine Polsterung unterhalb des label zu. Wie mache ich das? Danke.

Gefunden, die extra-Polsterung ist verursacht durch View:
TabNavigator-extra Polsterung

Wie kann ich es loswerden?

InformationsquelleAutor Somename | 2017-10-18
Schreibe einen Kommentar