React native textAlign:';证明';

React native textAlign:';证明';,react-native,React Native,是否有人提供了一个关于textAlign:'justify'如何在React Native中工作的示例或解释?对textAlign:'auto'也很好奇,我相信您唯一的textAlign:react-native中的选项是'center'、'flex-start'和'flex-end'事实上,react-native在android操作系统中不支持文本对齐。唯一的方法是使用Webview react native标记,如下所示: <View style={ flex: 1,height:

是否有人提供了一个关于
textAlign:'justify'
如何在React Native中工作的示例或解释?对
textAlign:'auto'
也很好奇,我相信您唯一的textAlign:react-native中的选项是'center'、'flex-start'和'flex-end'

事实上,react-native在android操作系统中不支持文本对齐。唯一的方法是使用Webview react native标记,如下所示:

<View style={  flex: 1,height: 500}}}>
        <WebView
          source={{
            html:
              "<style>p{text-align:justify}</style>" +
              "<p>" +
              "Lorem Ipsum is sim and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum" +
              "</p>"
          }}
        />
      </View>