Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs Can';t更改本机基本选项卡';高度_Reactjs_React Native_React Navigation_Native Base - Fatal编程技术网

Reactjs Can';t更改本机基本选项卡';高度

Reactjs Can';t更改本机基本选项卡';高度,reactjs,react-native,react-navigation,native-base,Reactjs,React Native,React Navigation,Native Base,选项卡工作正常。但是我不能像下图那样改变下划线和的高度 我正在使用Native Base来处理选项卡。但是我想不出任何方法来改变它的默认高度 <Tabs initialPage={0} tabBarUnderlineStyle={styles.tabBarUnderlineStyle} style={{height:40}} > <Tab heading="Following" tabStyle={styles.tabStyle} act

选项卡工作正常。但是我不能像下图那样改变下划线和
的高度

我正在使用Native Base来处理选项卡。但是我想不出任何方法来改变它的默认高度

<Tabs initialPage={0}
  tabBarUnderlineStyle={styles.tabBarUnderlineStyle}
  style={{height:40}}
>
  <Tab 
    heading="Following"
    tabStyle={styles.tabStyle}
    activeTabStyle={styles.activeTabStyle}
    activeTextStyle={styles.activeTextStyle}
    textStyle={styles.textStyle}
  >
    <FeedScreen navigation={this.props.navigation}/>
  </Tab>

使用
选项卡ContainerStyle
道具调整高度。同样,使用
tabBarUnderlineStyle
prop设置选项卡指示器的样式

<Tabs
      tabContainerStyle={{ height: 60 }}
      tabBarUnderlineStyle={{
        backgroundColor: "black",
        height: 5,
      }}
    />


您能分享一下您的风格吗?当然,我刚才说的是,它在普通组件中工作,但在底部可绘制组件中不工作
<Tabs
      tabContainerStyle={{ height: 60 }}
      tabBarUnderlineStyle={{
        backgroundColor: "black",
        height: 5,
      }}
    />