Recently, I have been receiving text messages from the backend and displaying them in a certain format:
<Text
style={{
fontSize: 14,
width: 70,
}}
numberOfLines={2}
>
{textFromApi}
</Text>
However, when the text is too long, it spills over to the second line. My goal now is to add a hyphen (-) at the point where a word breaks to the next line. While I am aware of hyphens: auto;
for web design, I'm wondering if there's a similar solution for react native?