Skip to content

Lineheight behaves differently on ios and android #10712

Description

@MarcoPolo

Description

On ios:
screen shot 2016-11-02 at 4 58 11 pm

On Android:
screen shot 2016-11-02 at 4 57 40 pm

note how the on android it seems like the line height is only applied on top of the text, while on ios it's applied to both top and bottom. This is also an issue when you have lineheights < fontSize. On ios it trims from the top, but on android it'll trim from top and bottom, so the text doesn't line up and get's truncated differently.

Reproduction

RNplay demo: https://rnplay.org/apps/OJFGEg

Additional Information

  • React Native version: 0.36
  • Platform: iOS & Android
  • Operating System: MacOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions