1.0.9 • Published 3 years ago

react-native-accordionlist v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

React Native Accordion List

Description

React native Accordion list using flatlist with animation.

Install

npm i react-native-accordionlist

Import

import { AccordionList } from "react-native-accordionlist";

Usage

const USER_LIST_MOCK_DATA = [
    {
        id: 1,
        title: 'Leanne Graham'
    },
    {
        id: 2,
        title: 'Ervin Howell'
    },
    {
        id: 3,
        title: 'Clementine Bauch'
    },
    {
        id: 4,
        title: 'Patricia Lebsack'
    },
    {
        id: 5,
        title: 'Chelsey Dietrich'
    }
]

<AccordionList data={USER_LIST_MOCK_DATA} component={<CollapsedComponent />} />

Required Props

PropTypedefaultDescription
dataArrayLIST_DATAArray of objects

Props for customization

PropTypedefaultDescription
componentComponentCollapsedComponentCustom Component

Demo Gif:

demo

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago