OD
(Choose 1 answer)
Which of these code snippets represents the final code for the section header that renders on top of each section in the menu?
A. const renderSectionHeader = ({ section: { title } }) => ( <View style={menuStyles.headerStyle}>
<Text style={menuStyles.sectionHeader}>{title} </Text>
</View>
);
B. const renderSectionHeader = ({ section: { title } }) => ( );<Text style={menuStyles.sectionHeader}>{title} </Text>
C. const renderSectionHeader = ({ section: { title } }) => (
<Text style={menuStyles.sectionHeader}/>{title});
D. const renderSectionHeader = ({ section: { title } }) => (
<View style={menuStyles.headerStyle}>
<Text style={menuStyles.sectionHeader}/>{title}
</View>
);
Exit 44