Skip to content

Add missing fontVariants #2732

Open
Open
@benharri

Description

@benharri

Is there an existing issue for this?

  • I have searched the existing issues

Describe the issue

additional font variants are available in react native
https://github.com/facebook/react-native/blob/e5dd7d68bf264669fc5c4ce5e69b24249d28558b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts#L440C17-L472C24

applying any of the missing ones in react-native-web causes them to be silently ignored

Expected behavior

fontVariants are applied correctly

Steps to reproduce

add a fontVariant that isn't available

| 'small-caps'
| 'oldstyle-nums'
| 'lining-nums'
| 'tabular-nums'
| 'proportional-nums'

Test case

https://codesandbox.io/p/sandbox/cool-resonance-3kqps8?workspaceId=af88e762-6261-40a3-a475-c631585426e7

Additional comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions