We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently with a multiplier value for line-height:
line-height
transformCss([['line-height', '1.5']])
The result is this:
{ lineHeight: 1.5 }
React Native treats it as a pixel value instead of a multiplier. We can only calculate the multiplier if we know the font-size of the Text element.
Text
Maybe we should only allow pixels (or other units) to be used with line-height and throw an error for a multiplier?
ping @jacobp100
The text was updated successfully, but these errors were encountered:
It’s just going through the generic remove-px route. Maybe we could just warn/throw an exception on dev for this case
Sorry, something went wrong.
We could just add this to fix the issue:
const lineHeight = tokenStream => tokenStream.expect(LENGTH, UNSUPPORTED_LENGTH_UNIT)
Successfully merging a pull request may close this issue.
Currently with a multiplier value for
line-height
:The result is this:
React Native treats it as a pixel value instead of a multiplier. We can only calculate the multiplier if we know the font-size of the
Text
element.Maybe we should only allow pixels (or other units) to be used with
line-height
and throw an error for a multiplier?ping @jacobp100
The text was updated successfully, but these errors were encountered: