Open devWaleed opened 2 years ago
Your _renderSectionTitle
function is also rendering the section content (in addition to _renderContent
):
const _renderSectionTitle = (section) => {
return (
<View style={styles.content}>
<Text>{section.content}</Text>
</View>
);
}
This is copied from the example in the Readme (it's a bit of an odd example, but shows that the section title can also be rendered dynamically from the sections
list).
Content is showing above header. Here is my code in functional component: