Pull to update Android and Phonegap

We are creating a multi-platform mobile application using Cordova, html, css. For some of our screens, we need to pull to update functionality. I tried the Damien solution ( http://damien.antipa.at/2012/10/16/ios-pull-to-refresh-in-mobile-safari-with-native-scrolling/ ) and iScroll for iOS, and it is great Suitable for iOS platforms. But none of the methods work for the Android platform. Can someone please help me with this? How can I create pull to Refresh for the Android platform.

+6
source share
2 answers

You should be able to do this using iscroll.js: http://iscrolljs.com/

Or you can read the Christophe Cohenreis blog article .

+2
source

I like the simplicity of this if you are also using React.js

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

Example:

<ReactPullToRefresh onRefresh={this.handleRefresh} className="your-own-class-if-you-want" style={{ textAlign: 'center' }}> <h3>Pull down to refresh</h3> <div>{items}</div> <div>etc.</div> </ReactPullToRefresh> 
+1
source

All Articles