我目前有一个工具栏-
我想要状态栏上的绿色工具栏,而在左侧,我需要返回按钮。这是我的代码-
<View style={{ height: 24 }} >
<StatusBar backgroundColor="rgba(0, 0, 0, 0.2)" translucent />
<Toolbar
rightElement={{
menu: {
icon: "more-vert",
labels: ["Settings"]
}
}}
onRightElementPress={this.settingsShow}
/>
<View style={styles.footer}>
//...
</View>
</View>
答案 0 :(得分:0)
从导航中删除White标头,请遵循此示例一个
export const Root = StackNavigator({
Login: {
screen: LoginStack,
},
},
{ mode: 'modal',
navigationOptions: {
header: null//Will hide header for all screens of current stack navigator, },
initialRouteName: 'Login',
})