Quiz: Application Styling
Quiz yourself on what you've learned about application styling in React Native.
1
Suppose we have the following styles in our StyleSheet
:
const styles = StyleSheet.create({
style1: {
width: 50
},
style2: {
height: 50
},
style3: {
color: "red"
}
});
What is the correct way of concatenating the styles style1
, style2
, and style3
?
A)
style={[styles.style1 + styles.style2 + styles.style3]}
B)
style={styles.style1 + styles.style2 + styles.style3}
C)
style=[styles.style1, styles.style2, styles.style3]
D)
style={[styles.style1, styles.style2, styles.style3]}
Question 1 of 60 attempted
Get hands-on with 1400+ tech skills courses.