sectionflow
v0.0.4
Published
Alias for @dreamstack-us/section-flow - High-performance React Native list library
Downloads
345
Maintainers
Readme
SectionFlow
High-performance, section-first list library for React Native. Drop-in replacement for SectionList with 10x better performance through cell recycling.
Installation
npm install sectionflow
# or
bun add sectionflowUsage
import { SectionFlow } from 'sectionflow';
const sections = [
{ key: 'fruits', title: 'Fruits', data: ['Apple', 'Banana', 'Orange'] },
{ key: 'veggies', title: 'Vegetables', data: ['Carrot', 'Broccoli'] },
];
<SectionFlow
sections={sections}
renderItem={({ item }) => <Text>{item}</Text>}
renderSectionHeader={({ section }) => <Text>{section.title}</Text>}
stickySectionHeadersEnabled
collapsible
/>Documentation
Full documentation available at: https://dreamstack-us.github.io/SectionFlow/
License
MIT © DreamStack
