react-native-markdown-renderer icon indicating copy to clipboard operation
react-native-markdown-renderer copied to clipboard

Text renderRule is not accepting textBreakStrategy prop

Open abelyeupear opened this issue 5 years ago • 0 comments
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:

  1. Am I missing something about how this is supposed to work?
  2. Is there a way to make sure this textBreakStrategy="simple" is applied?

abelyeupear avatar Feb 12 '20 16:02 abelyeupear