@gem-mine/rmc-list-view
v1.0.1
Published
list-view ui component for react(mobile web)
Downloads
8
Readme
rmc-list-view
list view ui component for react (mobile web)
install
npm i @gem-mine/rmc-list-view
Usage
import React from 'react'
import { ListView } from '@gem-mine/rmc-list-view'
const dataSource = ['A', 'B', 'C', 'D', 'E', 'F']
class Demo extends React.Component {
renderItem = (data) => (
<div>{data}</div>
)
render() {
return (
<ListView
dataSource={dataSource}
renderItem={this.renderItem}
>
)
}
}
Development
npm install
npm run watch-tsc
npm start
Example
http://127.0.0.1:8000/examples/
API
props
Test Case
npm test
Coverage
npm run coverage
open coverage/ dir
License
MIT