thmsgbrt / react-simple-pull-to-refresh

npm install react-simple-pull-to-refresh

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable event listeners like onScroll or add a callback for onPull

helzapps opened this issue · comments

This is more of a feature request, but would love the ability to know if the user began the pull. I have a list of intractable items (both tap and long press events) and if the user begins pulling down it doesn't stop the event from propagating down, or rather up I guess, the touch down on my list element gets responded too before the pull to refresh can full complete resulting in it getting cancelled because my app changes state based on the item tapped.
Currently I'm bubbling those events up to the parent and having it handle it, and I'm forced to use the Ionic framework instead because it gives me an onPull event where I can see if the user was attempting a pull-to-refresh and then basically cancel the select event if you will on the underlying element.
But I like the lighter weight of yours, I just can't figure out a way to make it work with my clients designs. They very much want a UITableView like experience in a native iOS app essentially.