【发布时间】:2021-07-26 08:53:32
【问题描述】:
我正在尝试在我的方格中添加单词,但是当我在框中输入一个长句子时,它会切断很多,有没有人知道如何使它可以开始一个新行而不是继续开箱?我的代码在正方形和文本下方
<View style={square}>
<Text
style={{
alignItems:'flex-start',
allowFontScaling: 'True',
alignContent: 'True',
color: 'white',
alignItems: 'True',
fontSize: 10,
}}>this is where my long sentence goes to test out my words in the box </Text>
</View>
const square = {
width: 120,
height: 80,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#6930C3',
flex:1
};
【问题讨论】:
标签: react-native text components shapes