Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text renderRule is not accepting textBreakStrategy prop #140

Open
abelyeupear opened this issue Feb 12, 2020 · 0 comments
Open

Text renderRule is not accepting textBreakStrategy prop #140

abelyeupear opened this issue Feb 12, 2020 · 0 comments

Comments

@abelyeupear
Copy link

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 abelyeupear changed the title Text rule is not accepting textBreakStrategy prop Text renderRule is not accepting textBreakStrategy prop Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant