https://github.com/jzhangdev/react-native-collapsible-section-list
https://github.com/jzhangdev/react-native-collapsible-section-list
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/jzhangdev/react-native-collapsible-section-list
- Owner: jzhangdev
- License: mit
- Created: 2023-03-16T02:51:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-24T02:36:26.000Z (over 3 years ago)
- Last Synced: 2025-04-15T08:58:52.172Z (about 1 year ago)
- Language: TypeScript
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-collapsible-section-list
A collapsible section list component for react-native.
Support for Android and iOS only.
## Properties
| Prop | Description | Required |
| ----------------------- | ---------------------------------------------------------- | -------- |
| `sections` | The data of the Section List. | `true` |
| `renderSectionHeader` | Render the section header element. | `true` |
| `renderSectionContent` | Render the section content element. | `true` |
| `keyExtractor` | Same with the `FlatList` `keyExtractor` property. | |
| `contentContainerStyle` | Same with the `FlatList` `contentContainerStyle` property. | |
| `sectionStyle` | Optional style for each section. | |
| `style` | Optional style for the list of sections. | |
## License
[MIT](./LICENSE)