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,
}}
/>