simple
之间有什么区别? , highQuality
和 balanced
textBreakStrategy
的值<Text>
的属性(property)React Native 中的组件? documentation 中未记录这些值 react native 。
最佳答案
默认情况下,Text
组件 Android
使用 highQuality
,这会导致单词使用连字符断开。
如果你想避免这种情况,你可以将中断策略设置为简单
。
这是所有 textBreakStrategy
之间的区别。
balanced - Line breaking strategy balances line lengths.
high_quality - Line breaking uses high-quality strategy, including hyphenation.
simple - Line breaking uses simple strategy.
关于android - React Native 中 textBreakStrategy 属性的简单、高质量、平衡之间有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53236569/