有没有人有一个工作示例或解释textAlign: 'justify'
在React Native中的工作原理?同样对textAlign: 'auto'
答案 0 :(得分:-1)
实际上,react native不支持android OS中的文本对齐对齐。唯一的方法是使用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>
答案 1 :(得分:-2)
我相信你唯一的textAlign:本地反应中的选项是'center','flext-start'和'flex-end'