Skip to content

Support multiple font-variants #175

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
finnp opened this issue Jan 6, 2023 · 3 comments · Fixed by #176
Closed

Support multiple font-variants #175

finnp opened this issue Jan 6, 2023 · 3 comments · Fixed by #176

Comments

@finnp
Copy link
Contributor

finnp commented Jan 6, 2023

The following:

styled.view`
 font-variant: small-caps oldstyle-nums;
`

should map to

<View style={{fontVariant: ['small-caps', 'oldstyle-nums']}}

It looks like instead it only chooses one of the font-variants provided.

@finnp finnp changed the title Multiple font-variants do not work Support multiple font-variants Jan 6, 2023
@jacobp100
Copy link
Contributor

You're right. Embarrassing too - I implemented fontVariant in react-native 😳😅

If you wanted to take a crack at it, replace this with something like this

@finnp
Copy link
Contributor Author

finnp commented Jan 6, 2023

Haha, nice only saw your comment right now. I actually just finished fixing it. Gonna send a PR now 👍

@jacobp100
Copy link
Contributor

Published 3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants