You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DebugPrintTree options activated, the example result was like this.
Because of strong styled component were nested in default text styled component, fontFamily doesn't apply to children component.
[ENV]
RN 0.64.3
Device : Android 11
[How To Reproduce]
Using custom font (like NotoSans from google fonts).
In this case, I use separate font files of its weights from google fonts (NotoSans-Bold, NotoSans-Regular, NotoSans-Medium)
Only body styling applied and other nested component's style ignored and followed by system default.(In my case, just fontWeight were applied by default library's option, fontFamily style were overwritten by system font)
It has same result when using rules prop. I tried even replace global styling option body to text, but it doesn't work.
The text was updated successfully, but these errors were encountered:
When apply custom font using
body
style rule to apply globally, other rule's fontFamily broken in android device.I think this is because nested text component styling issue related with facebook/react-native#20398
DebugPrintTree options activated, the example result was like this.
Because of strong styled component were nested in default text styled component, fontFamily doesn't apply to children component.
[ENV]
RN 0.64.3
Device : Android 11
[How To Reproduce]
In this case, I use separate font files of its weights from google fonts
(NotoSans-Bold, NotoSans-Regular, NotoSans-Medium)
Only body styling applied and other nested component's style ignored and followed by system default.(In my case, just fontWeight were applied by default library's option, fontFamily style were overwritten by system font)
It has same result when using
rules
prop. I tried even replace global styling optionbody
totext
, but it doesn't work.The text was updated successfully, but these errors were encountered: