react-native - Text with textAlign:justify has weird space at the end
问题描述
I have a Text component with a lot of text inside. I want to set textAlign: "justify" to the content but a weird space is added after the component. I'm sure no styles are applied to add the space in my code.
It happens on both IOS and Android, but the space is too big in Android.
解决方案
您只需要删除textAlign: 'justify',
段落样式,它仍然可以使用相同的样式并且没有错误。
您可以使用以下内容:
<WebView
source={{ html: "<p style='text-align: justify;'>Justified text here</p>" }}
/>
推荐阅读
- javascript - 如何使用 vanilla JavaScript AJAX 发布 JSON 或表单数据
- react-native - Android上的okhttp3问题
- java - JList setSelected 在第二次调用 setListData 后不再起作用
- android - Xamarin In App Billing Plugin 无法连接
- c# - 在不同屏幕尺寸上给定偏移量、宽度和高度时,关于使用 gdi 的 FFMPEG 屏幕是否按预期工作?
- twilio - 如果我们通过 WhatsApp 应用程序从我的手机发送图像/媒体,为什么 Twilio 只收到空白正文?
- php - 在 wordpress 中添加自定义表名,如默认表名
- javascript - 如何将动态生成的表格数据加载到模态内部的表单中?
- python - 在同一个对象上调用两次时间?
- android - 是否可以为服务类的布局设置完全透明的背景