react-native-markdown-renderer
react-native-markdown-renderer copied to clipboard
Text renderRule is not accepting textBreakStrategy prop
trafficstars
Since Android 10, textBreakStrategy="simple" is necessary for the text not to break in a way that can hide the last word of the text. Apparently, only the prop mentioned above solves this issue.
I tried adding this prop to the text renderRule like:
text: (node, children, parent, styles) => {
return <Text key={node.key} textBreakStrategy="simple">{node.content}</Text>;
},
But the prop is not being applied appropriately, or, at least, the text is still breaking. I have two questions:
- Am I missing something about how this is supposed to work?
- Is there a way to make sure this
textBreakStrategy="simple"is applied?