Disallow valid font-weight
values that work on iOS, but are ignored and get mapped to normal
or bold
weight on Android.
.a {
font-weight: 500;
}
/** ↑
* This value */
More info:
- react-native/issues/19707
- ReactFontManager.java
- react-native/issues/19736
- React Native feature requests - fontWeight '300' not working on Android
The following patterns are considered violations:
.a {
font-weight: 100;
}
.a {
font-weight: 300;
}
The following patterns are not considered violations:
.a {
font-weight: 400;
}
.a {
font-weight: 700;
}
.a {
font-weight: normal;
}
.a {
font-weight: bold;
}