Giter Site home page Giter Site logo

bryaneaton13 / react-pull-to-refresh Goto Github PK

View Code? Open in Web Editor NEW
462.0 8.0 75.0 654 KB

React component for web pull to refresh

Home Page: https://www.npmjs.com/package/react-pull-to-refresh

License: MIT License

JavaScript 4.49% CSS 16.32% HTML 3.97% TypeScript 75.22%
react pull-to-refresh web pull-down-refresh reactjs

react-pull-to-refresh's People

Contributors

benogle avatar bryaneaton13 avatar eqyiel avatar kaspern avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-pull-to-refresh's Issues

server side rendering error

When I'm trying to render on the server I'm getting an error on hammer.js that window is not defined.

ReferenceError: window is not defined at Object.<anonymous> (/my-project/node_modules/react-pull-to-refresh/node_modules/hammerjs/hammer.js:2643:4)

It would be nice we can support server side rendering, as a workaround I will need to check if window is defined before I require react-pull-to-refresh

var PullToRefresh
if (global.window) {
  PullToRefresh = require('react-pull-to-refresh')
}

Infinite scrolling integration

I need component which has both: pull-to-refresh and load-more on scroll down.
How to add infinite scrolling to your component?

Pull to load?

Have you think of adding a pull up to load more data? I want an infinite scroll but is problematic to just trigger the event at X scroll position. Maybe this effect of pulling can be useful for the experience.

If not, i would like to talk with you to create a new one. Good day mate.

Error after installation in project ("react": "^17.0.1")

Module not found: Error: Can't resolve 'react/jsx-runtime' in 'C:\Users\a.zhailkhanova\Documents\JI projects\mobile-app-client\node_modules\react-pull-to-refresh\dist'
Did you mean 'jsx-runtime.js'?
BREAKING CHANGE: The request 'react/jsx-runtime' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.

Cannot resolve module 'react-pull-to-refresh'...

Hi,

When I run 'webpack' I keep getting a "Module not found: Error: Cannot resolve module 'react-pull-to-refresh'"
How to import this module?
Thx~~~

My 'node' version is '8.1.13' , 'npm' version is '5.0.3'.

Can't scroll on mobile

On a mobile device or in chrome dev tools emulating a device I cannot scroll. Scrolling up does nothing and scrolling down activates the pull to refresh.

Customize loadingIcons

What exactly are the loading and icon props doing? Is loading the arrow up and icon the arrow down? And is there a prop available so I can customize the loading animation that should appear?

Target specific component?

Is it possible to somehow wrap all my main body content in the pull-to-refresh component but specify only a specific component inside to trigger the pull? So, only when pandown is detected on the header component for example?

Redux support?

This assumes we're always waiting for a promise to resolve. With Redux, this promise is hidden from us, so we're normally wait for data change in props.

Is there anyway we could use this library the redux way?

cannot build with command

i clone the project and npm install all the dependencies,and try to build to get the dist package with"npm run prepublish",however, there is sth wrong with the command of build:file and minify,.

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.