What is the difference between simple
, highQuality
and balanced
value for textBreakStrategy
property of <Text>
component in React Native? These values are not documented in the documentation of React Native.
By default, for Text
component Android
use highQuality
and that is causing the words breaking using hyphens.
If you want to avoid that, you can set the break strategy to simple
.
This is the difference among all of textBreakStrategy
s.
balanced - Line breaking strategy balances line lengths.
high_quality - Line breaking uses high-quality strategy, including hyphenation.
simple - Line breaking uses simple strategy.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With