Skip to content

Top of Text cut off when lineHeight < fontSize #7687

@dsherret

Description

@dsherret

Version: 0.25.1
OS: Mac 10.11.3
Platform: iOS only since lineHeight seems to only be supported for iOS
Screenshot:

image

Code:

// JSX
<Text style={styles.text}>
  Text that goes on multiple lines.
</Text>

// style
var styles = StyleSheet.create({
  text: {
    fontSize: 35,
    lineHeight: 35 * 0.75
  }
});

https://rnplay.org/apps/GPgsLg

Note: Setting overflow: "visible" or a large height doesn't fix this.

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