Styles
Usage for Static Styles
var RedBox = ({ children }) => {
return (
<View style={ styles.base }>
{ children }
</View>
);
};
const styles = StyleSheet.create({
base: {
backgroundColor: '#222222',
color: '#fff',
},
active: {
backgroundColor: '#85144b',
color: '#B10DC9'
},
});Usage for Dynamic Styles
Last updated
Was this helpful?