vitalets / react-native-extended-stylesheet

Extended StyleSheets for React Native
MIT License
2.93k stars 132 forks source link

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

Open efoken opened 4 years ago

efoken commented 4 years ago

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

stale[bot] commented 3 years ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.