【发布时间】:2019-06-25 07:58:37
【问题描述】:
我正在尝试更改标注的背景颜色,但背景颜色不影响整个视图。
这是我的截图:
我希望 backgroundColor 包含完整的工具提示。
这是我的代码:
<MapView.Callout
style={{
width: 200,
height: 40,
backgroundColor: '#107B67',
borderRadius: 10,
zIndex: 10
}}
>
<View
style={{
flex: 1,
justifyContent: 'center',
alignItems: 'center'
}}
>
<Text>logkjbkb</Text>
</View>
</MapView.Callout>
如何将 backgroundColor 设置为整个标注?
【问题讨论】:
标签: react-native maps react-native-maps