Git Product home page Git Product logo

react-native-refresh's Introduction

react-native-refresh

原生集成的下拉刷新。

原理

此库iOS基于MJRefresh,安卓基于SmartRefreshLayout,均是原生中使用非常广泛的下拉刷新库。 此库只提供基础的Base部分,但是Demo中提供了两种此库的用法,一个是默认的文字形式,一个是结合lottie实现的下拉刷新动画。

注意!!!

  • 支持0.59+,使用Android X的开发者在项目根目录执行 npx jetify
  • 0.57以下,因为RN iOS平台的ScrollView添加RefreshControl的方式还未改变,不支持自定义,需要改动ScrollView源码才能实现,故不会适配。
  • 如果使用上遇到问题或者疑惑,请提交issue,比较着急的话请加我QQ:593908937。

下载

React Native >= 0.60.0

$ npm install react-native-refresh --save
$ cd ios && pod install
$ cd .. && npx jetify 
$ npm run ios // npm run android

React Native >= 0.59

$ npm install react-native-refresh --save
$ react-native link react-native-refresh
$ npm run ios // npm run android

react-native-refresh's People

Contributors

jiasongs avatar

Watchers

 avatar

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.