@dreamstack-us/section-flow
v0.0.4
Published
High-performance, section-first list library for React Native
Maintainers
Readme
SectionFlow
High-performance, section-first list library for React Native. Drop-in replacement for SectionList with 10x better performance through cell recycling.
Development Status: This library is in active development and not yet ready for production use.
Features
- Cell Recycling: 10x JS thread improvement over virtualization
- Section-First: Native section support without data flattening
- Type-Safe: Full TypeScript support with proper generics
- Sticky Headers: Headers that actually work
- Collapsible Sections: Built-in, no external state needed
Installation
npm install sectionflow
# or
npm install @dreamstack-us/section-flowUsage
import { SectionFlow } from 'sectionflow';
const sections = [
{ key: 'a', title: 'A', data: ['Alice', 'Adam'] },
{ key: 'b', title: 'B', data: ['Bob', 'Beth'] },
];
<SectionFlow
sections={sections}
renderItem={({ item }) => <Text>{item}</Text>}
renderSectionHeader={({ section }) => <Text>{section.title}</Text>}
stickyHeaders
collapsible
/>Documentation
Full documentation available at: https://dreamstack-us.github.io/SectionFlow/
License
MIT © DreamStack
