17
(Choose 1 answer)
A B
ScrollView <
Study the code below and choose the description that describes it accurately:
style={[
styles.container,colorScheme === 'light'? { backgroundColor: '#fff' } {backgroundColor: '#333333' },]}>
A. This code is valid. It performs conditional styling based on the colorScheme variable. If the value is light, a white background is set; if it has any other value, a dark background is set for the ScrollView
B. This code is invalid. It will throw an error because conditionals cannot be used within the style prop
FUOVERFLO.COM
antoni
Ext