Created
November 27, 2019 10:00
-
-
Save chummypixels/2e67e858c9004a81860b08231b0ac448 to your computer and use it in GitHub Desktop.
Creating sections prop for SectionList in React Native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {StyleSheet, ScrollView, View, Text, SectionList} from 'react-native'; | |
export default class SectionListBasics extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<SectionList | |
sections={[ | |
]} | |
/> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment