【发布时间】:2018-07-15 23:59:04
【问题描述】:
我的标签“Encontrados”如何表现得像一个 span ,我不能让它工作。这是我的代码:
<View><Text style={styles.tag}>{tagType}</Text></View>
tag: {
borderRadius: 6,
borderColor: "#999",
borderWidth: 2,
padding: 5,
marginBottom: 10,
fontWeight: "600",
color: "#999"
}
这看起来像一个简单的问题,但我是新手,我无法在网络上找到解决方案,感谢阅读。
【问题讨论】:
-
您是否尝试过嵌套
Text组件,就像解释here 一样? -
@Tholle 我遵循了答案,它对我有帮助,谢谢。
标签: reactjs react-native