fontVariant
not an allowed title style
#1766
Closed
elliottkember
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all!
We're using
fontVariant: ['tabular-nums']
for text styling in a header in@react-navigation/native-stack
, and I noticed that it's not a respected property. I tried to add it, but got a little stuck on the native part.I think it'd be great to support tabular numbers, because they look great and are also very useful for IDs or numerical titles. On the JS side, I think it can be added as a
titleFontVariant
prop, and then it can be passed to RCTFont as thevariant
property in the native code.On the Android side, I think it's something here, but I'm not familiar enough with this code to know how to change the variant.
Anyway, thoughts would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions