我需要更改 Android 和 iOS 的 React Native 中文本的行间距。 这是样式页面中的代码:
text: {
color: '#C0C0C0',
fontSize: 18,
textAlign: 'justify',
}
最佳答案
使用lineHeight
-
text: {
color: '#C0C0C0',
fontSize: 18,
textAlign: 'justify',
lineHeight: 30,
},
关于text - React Native 中文本行之间的间距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42722675/