Two views:
<View style={styles.rectangle}/>
<View style={styles.rectangle}/>
I have these two rectangles that have a rectangle styling. I want to set custom flex for each of them, say the first one flex:2, second flex:5. How to achieve this without writing styles rectangle_flex_2 and rectangle_flex_5?
rectangle: {
borderRadius: (5),
backgroundColor: '#FFFFFF00',
borderColor: 'red',
borderWidth: 1,
},