All Projects → react-native-china → react-native-drop-refresh

react-native-china / react-native-drop-refresh

Licence: other
♻️ A pull down to refresh control for react native.

Projects that are alternatives of or similar to react-native-drop-refresh

React Native Mjrefresh
基于ios MJRefresh https://github.com/CoderMJLee/MJRefresh 开发的插件,可提供自定义的弹性刷新
Stars: ✭ 140 (+112.12%)
Mutual labels:  refresh
Flutter easyrefresh
A flutter widget that provides pull-down refresh and pull-up load.
Stars: ✭ 2,989 (+4428.79%)
Mutual labels:  refresh
EasyRefresher
The refresh control associated with the scroll view.
Stars: ✭ 15 (-77.27%)
Mutual labels:  refresh
Listloading
listloading是一个移动端的上拉、下拉加载更多的组件。主要依赖于iscroll.js v5.1.2基础上开发的组件,基础库可以使用jquery.js或者zepto.js操作dom节点,目前我是使用了zepto.js作为基础库操作dom,以jquery插件的形式存在。如果不想以插件方式使用,则只需要把listloading直接移植你需要的库里面就ok啦。listloading主要针对移动端而生,在使用浏览器自带滚动,用户体验很不友好,与Android和ios差别甚远,所以选择iscroll.js,它实现方式是使用css3动画translate 3D 转换来实现滚动效果,transform属性使用硬件加速,性能方法得到很大提高。 https://gtdalp.github.io/widget/listloading/demos/listloading.html
Stars: ✭ 169 (+156.06%)
Mutual labels:  refresh
Shswiperefreshlayout
Android 升级版 SwipeRefreshLayout,支持RecyclerView、ScrollView等大部分组件,下拉刷新(Refresh)和上拉加载(Loadmore),支持自定义HeaderView和FooterView
Stars: ✭ 236 (+257.58%)
Mutual labels:  refresh
goRefresh
让下拉刷新炫酷起来~轻松接入lottie动画,支持listview recyclerview scrollerview webview 。同时支持listview和recyclerview上拉加载
Stars: ✭ 24 (-63.64%)
Mutual labels:  refresh
Pull To Refresh
ESPullToRefresh is developed and maintained by Vincent Li. If you have any questions or issues in using ESPullToRefresh, welcome to issue. If you want to contribute to ESPullToRefresh, Please submit Pull Request, I will deal with it as soon as possible.
Stars: ✭ 1,591 (+2310.61%)
Mutual labels:  refresh
View-Load-ReTry
这个加载框架有点不一样,针对View进行加载,加载页面还保持了原View的属性,侧重点在灵活,哪里需要加载哪里,加载状态页面完全自定义,无任何限制,针对加载结果可以按需配置对应页面,LeakCanary检测无内存泄漏
Stars: ✭ 116 (+75.76%)
Mutual labels:  refresh
React Native Smartrefreshlayout
基于android SmartRefreshLayout https://github.com/scwang90/SmartRefreshLayout 开发的插件,可提供类似ios的弹性刷新
Stars: ✭ 240 (+263.64%)
Mutual labels:  refresh
Management
Management Endpoints used to allow insight into your applications
Stars: ✭ 31 (-53.03%)
Mutual labels:  refresh
Pull To Refresh.rentals Ios
This project aims to provide a simple and customizable pull to refresh implementation. Made in Yalantis
Stars: ✭ 2,171 (+3189.39%)
Mutual labels:  refresh
Mjrefresh
An easy way to use pull-to-refresh.
Stars: ✭ 13,565 (+20453.03%)
Mutual labels:  refresh
YanXuanRefresh
仿网易严选下拉刷新动画效果
Stars: ✭ 37 (-43.94%)
Mutual labels:  refresh
Tgrefreshoc
弹簧、橡皮筋下拉刷新控件,类似QQ下拉刷新效果,同时支持其他样式
Stars: ✭ 149 (+125.76%)
Mutual labels:  refresh
zepto-refresh
实现下拉到底部和上拉到顶部再拉就出现刷新效果
Stars: ✭ 20 (-69.7%)
Mutual labels:  refresh
View Load Retry
这个加载框架有点不一样,针对View进行加载,加载页面还保持了原View的属性,侧重点在灵活,哪里需要加载哪里,加载状态页面完全自定义,无任何限制,针对加载结果可以按需配置对应页面,LeakCanary检测无内存泄漏
Stars: ✭ 119 (+80.3%)
Mutual labels:  refresh
react-pullrefresh
Pull to refresh react component.
Stars: ✭ 61 (-7.58%)
Mutual labels:  refresh
android-Ultra-Pull-To-Refresh-With-Load-More-master
No description or website provided.
Stars: ✭ 18 (-72.73%)
Mutual labels:  refresh
vuejs-loadmore
A pull-down refresh and pull-up loadmore scroll component for Vue.js. Vue上拉加载下拉刷新组件
Stars: ✭ 62 (-6.06%)
Mutual labels:  refresh
LCRefresh
简单的swift 版的 下拉刷新控件,希望可以给你提供一个思路。
Stars: ✭ 21 (-68.18%)
Mutual labels:  refresh

react-native-drop-refresh

A pull down to refresh control for react native. This is a fork version from Shuangzuan/RCTRefreshControl.

Better npm maintainess,issues are welcomed.

NPM NPM

####Update 2.2.0 Support react-native 0.40.0, change CMD to ES6 syntax.

####Update 2.1.0 Support react-native 0.20.0, solve module name collsion issue.

Screen Shot

Screen Shot

Installation

  1. Run npm install react-native-drop-refresh --save in your project directory.
  2. Run react-native link to link the lib up.
  3. Add import DropRefreshControl from 'react-native-drop-refresh'; to your code.

Usage

import React, { Component } from 'react';
import DropRefreshControl from 'react-native-drop-refresh';

import {
  AppRegistry,
  ListView,
  ScrollView,
  StyleSheet,
  Text,
  View
} from 'react-native';

var SCROLLVIEW = 'ScrollView';
var LISTVIEW = 'ListView';

class RCTRefreshControlDemo extends Component{
  constructor(){
    var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
    this.state = {
      dataSource: ds.cloneWithRows(['#484848', '#2F9C0A', '#05A5D1']),
    }
  }

  componentDidMount() {
    // ScrollView
    DropRefreshControl.configure({
      node: this.refs[SCROLLVIEW],
      tintColor: '#05A5D1',
      activityIndicatorViewColor: '#05A5D1'
    }, () => {
      setTimeout(() => {
        DropRefreshControl.endRefreshing(this.refs[SCROLLVIEW]);
      }, 2000);
    });

    // ListView
    DropRefreshControl.configure({
      node: this.refs[LISTVIEW]
    }, () => {
      setTimeout(() => {
        DropRefreshControl.endRefreshing(this.refs[LISTVIEW]);
      }, 2000);
    });
  }

  render() {
    return (
      <View style={styles.container}>
        <ScrollView ref={SCROLLVIEW} style={styles.scrollView}>
          <View style={{backgroundColor: '#05A5D1', height: 200}} />
          <View style={{backgroundColor: '#FDF3E7', height: 200}} />
          <View style={{backgroundColor: '#484848', height: 200}} />
        </ScrollView>

        <ListView
          ref={LISTVIEW}
          style={styles.listView}
          dataSource={this.state.dataSource}
          renderRow={(rowData) => {
            var color = rowData;
            return (
              <View style={{backgroundColor: color, height: 200}} />
            );
          }}
        />
      </View>
    );
  }
};

var styles = StyleSheet.create({
  container: {
    flex: 1,
    flexDirection: 'row'
  }
});

AppRegistry.registerComponent('DropRefreshControlDemo', () => DropRefreshControlDemo);
// use `export default DropRefreshControlDemo` instead to use this as an component;

License

Available under the MIT license. See the LICENSE file for more informatiion.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].