@edwardzhou/react-native-smartlist-view

1.0.2 • Public • Published

Easy way to use flatlist.

Install

$ npm install @edwardzhou/react-native-smartlist-view --save

Usage

1.yourFile.js

import React, { Component } from 'react';
import { SmartListView } from '@edwardzhou/react-native-smartlist-view';

export default class MyComponent extends Component {

  render() {
    return (
      <SmartListView
          style={{ flex: 1 }}
          pagination
          renderItem={({ item }) => {
            return (
              <YourCell
                detail={item}
                {...this.props}
              />
            );
          }}
          onRefresh={(...args) => yourInterface(YourParams, ...args)}
          {...this.props}
        />
    );
  }
}

License

MIT

Package Sidebar

Install

npm i @edwardzhou/react-native-smartlist-view

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

5.32 kB

Total Files

4

Last publish

Collaborators

  • edwardzhou