const customTextProps = {
style: {
fontFamily: 'Nunito Sans'
}
};
setCustomText(customTextProps);
When using the Inspector, the Text component's fontFamily still shows up as System.
Apparently, react-native automatically prepended {fontFamily: 'System', fontSize:16, color:'#000'} to Text's style prop, which overrides our own custom style prop.
When using the Inspector, the Text component's fontFamily still shows up as
System.Apparently, react-native automatically prepended
{fontFamily: 'System', fontSize:16, color:'#000'}to Text's style prop, which overrides our own custom style prop.