react-native-vector-icons: Icon size is wrong with 1.0.0

The icon size is wrong in the latest version using the new custom font feature of RN.

Expected (as with 0.8.5):

screenshot_2015-11-23-08-02-49

Current (with 1.0.0 - background set to blue to see the dimensions):

screenshot_2015-12-04-18-26-30

Code used (simplified):

<MaterialIcons name="arrow-back" size={24} style={{ margin: 16 }} />

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 25 (21 by maintainers)

Commits related to this issue

Most upvoted comments

lineHeight behaves very weirdly in React Native, it’s nothing like in CSS. What happens if you try to set both height and lineHeight (also try without margin/padding to be sure it doesn’t iterfere)?