如何为标题下的背景做一个渐变?这是最好的,如果它是在屏幕上,也在顶部栏。

SignInScreen:
static navigationOptions = {
headerStyle: {
backgroundColor: 'transparent',
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
}
};
render(){
return(
<LinearGradient colors={['#13547a', '#80d0c7']} style={styles.linearGradient}>
<View style={styles.container}>
<LoginForm navigation={this.props.navigation} />
</View>
</LinearGradient>
)
}发布于 2018-10-05 18:28:24
static navigationOptions = {
title: 'some string title',
headerTitleStyle: {
},
headerStyle: {
backgroundColor:'rgba(0,0,0,0.6)'
},
headerTintColor: {
},
}
https://stackoverflow.com/questions/52662796
复制相似问题