react-native v0.0.1-alpha.28
over 1 year ago by ReadMe API
What’s new:
- introduced
useFonts
hook which would returnsetFonts
function that could be used by integrators to set their custom font family. Integrators has to set corresponding font for each typeface i.e set font for regular, bold, italic, semi bold etc. - introduced
LLText
component which is used in every component instead ofText
to get applied custom fonts. - introduced
useCustomFontStyle
hook which returns an evaluated styles forText
based Component based on fontWeight and fontStyle, these tweaked style are needed because of platform (IOS & Android) limitation for custom fonts. - introduced
useFontFamily
hook which returns an evaluated fontFamily based on fontWeight and fontStyle.