【发布时间】:2019-06-11 09:35:45
【问题描述】:
我正在制作 react native expo 应用程序。我有标题,我将图像作为背景。我想在这张图片上加上背景颜色,但是当我写背景颜色时,它不起作用。我如何在标题中的图像上放置背景颜色 代码:
navigationOptions: {
headerTintColor: 'white',
headerBackground: (
<Image
source = {{ uri: "http://rapprogtrain.com/img/new/computer-2788918_1280.jpg" }}
style={{resizeMode:'cover', width: Dimensions.get('window').width,
height:250, backgroundColor:'#1e1e21' }}
/>
),
},
【问题讨论】:
标签: react-native react-navigation expo