Skip to content

Handling of line-height with a multiplier value #89

Closed
@kristerkari

Description

@kristerkari

Currently with a multiplier value for 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.

Maybe we should only allow pixels (or other units) to be used with line-height and throw an error for a multiplier?

ping @jacobp100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions