换行时如何设置文字不断字的样式?

时间:2019-03-20 08:31:49

标签: react-native

break word when break line

txtLeft: {
    flex: 7,
    textAlign: 'left',
    fontFamily: theme.Font.Bold,
    color: theme.Color.Gray,
    paddingRight: 20,
    flexWrap: 'wrap',
  },

  txtRight: {
    flex: 3,
    textAlign: 'left',
    color: theme.Color.Gray,
  },

1 个答案:

答案 0 :(得分:0)

textBreakStrategy组件中的Text设置为simple

<Text textBreakStrategy="simple">You text goes here</Text>

可用于Android API级别23 +