1.0.1 • Published 4 years ago
biglist-with-tabs
Licence
MIT
Version
1.0.1
Deps
2
Size
442 kB
Vulns
0
Weekly
0
Screenshot
How to use ?
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'
Basic Example
JavaScript
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} />;
}
Remember !
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"
}
]
]
License
MIT