I've just started working on a react-native app. The official docs suggest to use JavaScript objects to create styles for your components, like so,
<Text style={style.text}>Blah Blah</Text>
const style = {
text: {
fontSize: 20
}
}
I'm trying to add a className to the Text property, so I can add css using simple stylesheets. Is this even possible with react-native (I know we can do this in react, though)? Something like this,
<Text className="text-style"></Text>
// from CSS file
text-style: {
font-size: 20;
}