setting fontWeight to bold instead of numeric bold

This is a known issue in android support for font... for fix this I use a separate extension of Text that overrides fontWeight property for matching fontFamily to use for instance for fontWeight 700, the font family would be Roboto-Bold etc...

For now, I have fixed it by setting fontWeight to bold instead of numbered weight as that works in android.
This commit is contained in:
Nouman Tahir 2021-05-12 02:33:34 +05:00
parent 7516d81f39
commit b96670400b

View File

@ -11,7 +11,7 @@ export default EStyleSheet.create({
title: {
fontSize: 24,
color: '$primaryBlack',
fontWeight: '900',
fontWeight: 'bold',
fontFamily: '$primaryFont',
marginBottom: 11,
},