Giter Site home page Giter Site logo

vickness / react-native-vk-list Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 1.97 MB

🔥原生列表,高性能,大数据,无白屏和卡顿

License: MIT License

JavaScript 17.73% Python 4.45% Java 42.68% Objective-C 33.23% Ruby 1.90%
tableview listview flatlist recyclerview

react-native-vk-list's Introduction

react-native-vk-list

高性能原生列表,iOS端使用 TableView,Android端使用 ListView
集成下拉刷新和上拉加载,iOS使用 MJRefresh,Android端使用 SmartRefreshLayout

安装

只支持 react-native >= 0.60 (autolinking)

yarn add react-native-vk-list  
cd ios
pod install

使用

const TableViewHeader = props => {
    return (
        <View>
        </View>
    );
};
AppRegistry.registerComponent('TableViewHeader', () => TableViewHeader);
const TableViewFooter = props => {
    return (
        <View>
        </View>
    );
};
AppRegistry.registerComponent('TableViewFooter', () => TableViewFooter);
const TableViewRow = props => {
    return (
        <View>
        </View>
    );
};
AppRegistry.registerComponent('TableViewRow', () => TableViewRow);
<TableView
    style={{flex: 1}}
    ref={o => this.tableView = o}

    rowModule={"TableViewRow"}
    rowHeight={200}
    rowData={this.state.rowData}

    headerModule={"TableViewHeader"}
    headerHeight={150}
    headerData={this.state.headerData}

    footerModule={"TableViewFooter"}
    footerHeight={60}
    footerData={this.state.footerData}

    onHeaderRefresh={this._onHeaderRefresh}
    onFooterRefresh={this._onFooterRefresh}

    showSeparator={false}
/>
this.tableView.startHeaderRefresh();

this.tableView.stopHeaderRefresh();

this.tableView.startFooterRefresh();

this.tableView.stopFooterRefresh();

this.tableView.stopFooterRefreshWithNoData();

react-native-vk-list's People

Contributors

vickness avatar weike886 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ajunlonglive

react-native-vk-list's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.