Skip to content

fontWeight and custom fontFamily are not working properly together. #4419

@JieMin27

Description

@JieMin27

Current behaviour

I tried to use the Poppins font for my project. I found out that to make the font weight work, I can't set the base font family as 'Poppins'; instead, I need to declare it like fontFamily: 'Poppins-SemiBold' for it to work. However, for the font to work on iOS, I need to set up the fontWeight, but the fontWeight can only be set up to 600.

IOS
Working:
fontFamily: 'Poppins-Bold',
fontWeight: '600',

Not Working:
fontFamily: 'Poppins-Bold',
fontWeight: '700',

Expected behaviour

How to reproduce?

Preview

What have you tried so far?

Your Environment

software version
react-native 0.74.0
react-native-paper 5.12.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions