nadikuts / react-native-pull-refresh Goto Github PK
View Code? Open in Web Editor NEWCustom pull to refresh component for Android
Home Page: https://expo.io/@devilsanek/animated-pull-to-refresh
Custom pull to refresh component for Android
Home Page: https://expo.io/@devilsanek/animated-pull-to-refresh
Hi,
Is it possible for you to add a DefinitlyTyped version so that I can use the library in my typescript applications?
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});
}
If you have an empty or small list, and scroll down, the animation disappears and onRefresh method is not called anymore.
proptypes no longer avalible in react
If I dont have enough list items, the animationBackgroundColor is shown in the background.
Wondering if this will ever consider implementing a horizontal pull to refresh. I cannot seem to find anything that does it.
Hello, help me please!!
yarn add installs an older version of the code which does not work.
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 👍
But as soon as I scroll even a little bit down, taps will trigger onPress in the children?
Any idea what could cause those events in children not to fire?
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?
This change appears to make the library work for iOS. Perhaps the "Android" only indicator in the readme should be removed?
Hi @NadiKuts,
your solution looks really promising. I have not played around with it pretty much yet, but I have two questions already:
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.
Does support load more?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.