文本被水平裁剪 [React-Native|Expo]

问题描述 投票:0回答:0

我想放下一些文字,但文字以一种奇怪的方式被剪裁了

代码:

                    <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>

输出(只说“Let”而不是“Let op!”):

(这是在安卓上测试过的)

我尝试了几乎所有的东西,在 stackoverflow 上搜索,添加了一个

textBreakStrategy="simple"
什么也没改变。

任何帮助/建议将不胜感激。

android react-native expo
© www.soinside.com 2019 - 2024. All rights reserved.