Giter VIP home page Giter VIP logo

react-native-pull-refresh's People

Contributors

amine-h avatar aymen-mouelhi avatar dependabot[bot] avatar erikfenriz avatar muhaimincs avatar nadikuts avatar vikrampunchh 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  avatar  avatar  avatar

react-native-pull-refresh's Issues

Scroll is disabled when scrollY reaches to 0

It's missing a check to fix the scrollable view to get disabled when the scrollY value is 0 after the second swipe down without refreshing the list, I will provide below the fixes to someone who wants to open a PR to fix it in master:

// line 146
            if (
                this.state.scrollY._value > 0 ||
                (this.state.scrollY._value === 0 && gestureState.dy < 0)
            ) {
                this.setState({isScrollFree: true});
            }

Animation bugs on scroll down

If you have an empty or small list, and scroll down, the animation disappears and onRefresh method is not called anymore.

Needs Updates...!

Not working anymore, need to update in the package manager, there are some error because you used old versions,however it was easy to solve them manually!...

Just import the proptypes according the new version....
and replace react.proptypes into PropTypes 👍

Does this work with FlatList?

I know FlatList has built in pull-to-refresh functionality, but I have yet to find a way to override it with something other than the default. Since FlatList is based on ScrollView should it work?

Android only?

This change appears to make the library work for iOS. Perhaps the "Android" only indicator in the readme should be removed?

#43

Does it work with a WebView (fullscreen) and do you plan to have iOS supported?

Hi @NadiKuts,

your solution looks really promising. I have not played around with it pretty much yet, but I have two questions already:

  • does it work with a Webview, where the Webview takes 100% of the Screen Size. Which means the user should still be able to scroll to the top of the WebView.
  • and do you plan do support iOS in the future?

Regarding the Webview, it would be possible to get the scroll position (eg. user is at the top of the page or not) from the Webview (with onMessage etc.). Still I would need a way to tell your component to only trigger the PTR when a certain condition is met (eg. scroll top is 0).

Can you help me out here please? Thanks.

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.