
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
react-native-section-list
Advanced tools
The react-native-section-list package is a library for React Native applications that simplifies the rendering and handling of lists. It provides a customizable component, SectionList, which allows you to display and iterate through a list of items, along
The react-native-section-list package is a library for React Native applications that simplifies the rendering and handling of lists. It provides a customizable component, SectionList, which allows you to display and iterate through a list of items, along with optional heading and item rendering functionalities.
Download the package with npm or yarn
npm install react-native-section-list
In order for react-native-section-list to work, you also need to install the moment
npm install moment
import SectionList from 'react-native-section-list';
<SectionList
jsonKey={'category'}
isDate={true}
containerStyle={styles.container}
childContainerStyle={undefined}
data={DATA}
renderHeading={(title) => (
<Text style={styles.headerText}>{title}</Text>
)}
renderItem={({ item, index }: { item: any; index?: number }) => (
<Text key={index}>{JSON.stringify(item)}</Text>
)}
/>
All the FlatList
props can be passed.
Prop | Type | Description |
---|---|---|
jsonKey | string | Extracts unique identifiers from the data (Required) |
isDate | boolean | indicates whether to sort data by date. |
containerStyle | ViewStyle | Styling for the main container that holds the list. |
childContainerStyle | ViewStyle | Additional styling for the child container that wraps |
renderHeading | React.FC<any> | renders each item in the list . |
data | Array<any> | An array of data to render in the FlatList (Required) |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library
FAQs
The react-native-section-list package is a library for React Native applications that simplifies the rendering and handling of lists. It provides a customizable component, SectionList, which allows you to display and iterate through a list of items, along
The npm package react-native-section-list receives a total of 2 weekly downloads. As such, react-native-section-list popularity was classified as not popular.
We found that react-native-section-list demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.