0.0.4 • Published 1 year ago

react-easy-list v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

react-easy-list

THIS LIB IS NOT DONE YET

Easy list system based on ReactNative's FlatList API

NPM JavaScript Style Guide

Why

The final objective of this lib is to build simple lists without dealing with maps, keys, last item and empty list logics

Install

npm install --save react-easy-list

Usage

import React from 'react'
import EaseList from 'react-easy-list'

const Example = () => {
  <EasyList
    data={[
      { id: 1, title: 'Hello', content: 'World' },
      { id: 2, title: 'World', content: 'Hello' },
    ]}
    renderItem={({ title, content }) => (
      <>
        <h1>{title}</h1>
        <h2>{content}</h2>
      </>
    )}
    ListHeaderComponent={<p>---- This is the beginning ----</p>}
    ListFooterComponent={<p>---- This is the end ----</p>}
  />
}

License

MIT © JoaoBGusmao

0.0.3

1 year ago

0.0.4

1 year ago

0.0.2

3 years ago

0.0.1

3 years ago