我想放下一些文字,但文字以一种奇怪的方式被剪裁了
代码:
<View
style={{
// align items center
alignItems: "center",
// justify content center
justifyContent: "center",
paddingHorizontal: 20,
paddingTop: 20,
}}
>
<FontAwesome5
name="exclamation-triangle"
size={35}
color="#FF1654"
/>
<Text
style={{
fontSize: 20,
textAlign: "center",
// Text gets clipped on new android versions
}}
textBreakStrategy="simple"
>
Let op!
</Text>
</View>
(这是在安卓上测试过的)
我尝试了几乎所有的东西,在 stackoverflow 上搜索,添加了一个
textBreakStrategy="simple"
什么也没改变。
任何帮助/建议将不胜感激。