step:1
npm | yarn |
---|---|
npm install FlyweightGroup/React-Native-Biglist-With-Tabs |
yarn add FlyweightGroup/React-Native-Biglist-With-Tabs |
step:2
import BigListTab from 'BigList-With-Tabs'
import BigListTab from 'BigList-With-Tabs'
// ...
const MyExample = ({ data }) => {
///provide your json data and onclick event through props..
return <BigListTab sectiondata={data} onClickItem={your function} />;
}
Json format of the Section Data should be
[
[
{
"category":"section heading",
"sectionId":"section id"
},
{
"item1":"item"
},
{
"item2":"item"
}
],
[
{
"category":"section heading",
"sectionId":"section id"
},
{
"item1":"item"
},
{
"item2":"item"
}
]
]
MIT