Skip to content

Don't convert rem to pixels for React Native Web #148

@efoken

Description

@efoken

Expected Behavior

As React Native Web supports rem values, they don't have to be converted to pixels by this library.

Actual Behavior

rem values are converted to a pixel value.

Show the code

EStyleSheet.create({
  text: {
    fontSize: '1.25rem',
  },
})

Expected output:
Web: fontSize: '1.25rem'
Native: fontSize: 20

Environment

Expo 38

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions