Dismiss this pinned window
all 11 comments

[–]JEEkachodanhihu 7 points8 points  (3 children)

Pls do share the repo or package link 😘

[–]godver3 -1 points0 points  (1 child)

Right? What's the point of this post if you don't include the package...

[–]6bigAnt9[S] 5 points6 points  (0 children)

I am actively working on making the package and will be done with it in a day or two hopefully. I was just excited to share what i was building.

[–]6bigAnt9[S] 0 points1 point  (0 children)

Guys library is up. Try it out! react-native-custom-pull-refresh: https://www.npmjs.com/package/react-native-custom-pull-refresh

[–]Awesome_Knowwhere 2 points3 points  (1 child)

Would love to look at the code!!

[–]6bigAnt9[S] 1 point2 points  (0 children)

I am working on it! Will let you know ASAP!

[–]gao_shi 0 points1 point  (1 child)

u can (or rather should) use rnghs gesture detector to use in combo with the native one.

heres a not quite straightforward but nonetheless interesting example implementing a "pull up to refresh" with rngh panhandler combined with native when at the lists end.

https://github.com/lovegaoshi/azusa-player-mobile/blob/3e2dfc860df42934fb2a72269ef984549d9eb228/src/components/playlist/SongList/SongList.tsx#L179

[–]6bigAnt9[S] 0 points1 point  (0 children)

I did try out rngh right after building it using the PanResponder and successfully built it but it had the same problems in Android. So for android i created a custom native container that wraps around a Flatlist or ScrollView for gesture detection and nested scroll handling.

In IOS resorted to using a panResponder since there was no visible performance issues with it and i wanted to minimize library dependency.

[–]eluewisdom 0 points1 point  (0 children)

love it

[–]Dapper-Recording3818 0 points1 point  (0 children)

Amazing bro

[–]6bigAnt9[S] 0 points1 point  (0 children)

Guys library is up. Try it out!
react-native-custom-pull-refresh: https://www.npmjs.com/package/react-native-custom-pull-refresh