# react-native-expo-interactive-section-list

> A performant scrollable tabbar-controlled interactive section list

Latest version **1.4.1** (published 2020-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-expo-interactive-section-list
pnpm add react-native-expo-interactive-section-list
yarn add react-native-expo-interactive-section-list
bun add react-native-expo-interactive-section-list
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2020-09-08 |
| First published | 2020-08-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 58.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 34 |
| Author | Henk O. Corporaal |
| Maintainers | henkcorporaal |
| Keywords | react-native, ios, android, interactive section list |

## Links

- npm: https://www.npmjs.com/package/react-native-expo-interactive-section-list
- Repository: https://github.com/hongkouHenk/react-native-expo-interactive-section-list
- Homepage: https://github.com/hongkouHenk/react-native-expo-interactive-section-list#readme
- Issues: https://github.com/hongkouHenk/react-native-expo-interactive-section-list/issues
- npm.io page: https://npm.io/package/react-native-expo-interactive-section-list

## Dependencies (1)

- [react-native-section-list-get-item-layout](https://npm.io/package/react-native-section-list-get-item-layout.md) ^2.2.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.4.1 (latest) — 2020-09-08
- 1.4.0 — 2020-09-08
- 1.3.0 — 2020-09-01
- 1.2.0 — 2020-09-01
- 1.1.0 — 2020-08-30
- 1.0.7 — 2020-08-25
- 1.0.6 — 2020-08-25
- 1.0.5 — 2020-08-25
- 1.0.4 — 2020-08-25
- 1.0.3 — 2020-08-25
- 1.0.2 — 2020-08-25
- 1.0.1 — 2020-08-25
- 1.0.0 — 2020-08-25

## README

# React Native Interactive Section List

Interactive Section List is a scrollable tab bar-controlled SectionList.

![preview](https://github.com/hongkouHenk/react-native-expo-interactive-section-list/blob/master/preview.gif)

## Features

- SectionList that scrolls to tab bar button selected sections.
- Tab bar button controls that follow along with SectionList scroll actions.
- Compatible with Expo.
- Written in TypeScript.

## Installation

```bash
yarn add react-native-expo-interactive-section-list

# or

npm install react-native-expo-interactive-section-list
```

## Usage

```python
import React, { useState, useEffect} from 'react';

import InteractiveSectionList from 'react-native-expo-interactive-section-list';

import MyItem from './MyItem';
import MySectionHeader from './MySectionHeader';

const searchIcon = require('../../assets/search.png');

const DATA = [
  {
    title: "Main dishes",
    data: ["Pizza", "Burger", "Risotto"]
  },
  {
    title: "Sides",
    data: ["French Fries", "Onion Rings", "Fried Shrimps"]
  },
  {
    title: "Drinks",
    data: ["Water", "Coke", "Beer"]
  },
  {
    title: "Desserts",
    data: ["Cheese Cake", "Ice Cream"]
  }
];

const Home = () => {
  const [data, setData] = useState([]);

  useEffect(() => {
    setData(DATA);
  }, []);

  return (
    <InteractiveSectionList
      data={data} // REQUIRED: SECTIONLIST DATA
      renderItem={({ item }) => <MyItem item={item} />} // REQUIRED: SECTIONLIST ITEM COMPONENT
      itemHeight={100}  // REQUIRED: USED TO IMPROVE PERFORMANCE
      renderSectionHeader={({ section }) => <MySectionHeader section={section} />} // OPTIONAL
      tabbarItemWidth={100}  // OPTIONAL
      tabbarItemSpaceBetween={8}  // OPTIONAL
      tabbarItemFontSize={16}  // OPTIONAL
      tabbarItemActiveColor='#FED41A'  // OPTIONAL
      tabbarItemInactiveColor='#FFF'  // OPTIONAL
      tabbarItemTitleActiveColor='#000' // OPTIONAL
      tabbarItemTitleInactiveColor='#EDEDED' // OPTIONAL
      tabbarItemHeight={40}  // OPTIONAL
      tabbarIcon={searchIcon}  // OPTIONAL
    />
  )};

export default Home;
```

## License

[MIT](https://choosealicense.com/licenses/mit/)

---
_Source: https://npm.io/package/react-native-expo-interactive-section-list · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
