External CSS stylesheet is not applying if I write inline and External CSS style together.
The Stylesheet I have:
const furStyles = StyleSheet.create({
title_text: {
fontSize: 46,
textAlign: 'center',
fontWeight: 'bold',
}
})
The below is the code where the problem occurs. Only color:'#ED9780' does work. The Stylesheet above does not apply at all if I add inline which is {color:'#ED9780'}. The stylesheet is applied only if I delete inline styles in the bracket which is {textAlign: 'center',color:'#ED9780'}
<Text style={furStyles.title_text,{color:'#ED9780'}}>BEST</Text>
Why does this happen? Any help would be greatly appreciated.