violet-paginator
violet-paginator copied to clipboard
can we use this in react native ?
I need a redux paginator to handle pagination , can we use this in react native?
Hmm, great question! The short answer is: probably, but I've never tried it!
Here's the longer answer.
- It probably works if you go the custom component route, although...
- I actually have a newer version of this lib that works better in at least a couple ways, but...
- the documentation was never fully migrated for the new library, and...
- I have not kept up with the latest versions of redux or other peer dependencies because I don't really use or maintain this lib anymore.
My advice: if the library doesn't work for you out of the box, copy the parts you like and roll your own. It's implemented using a higher order reducer pattern and the most difficult part to get right (for me anyway) is displaying the right page numbers in between the Previous
and Next
links. I'm even pretty sure there's a mistake in that code here, which I've fixed in solutions that I've implemented since then.
Thanks a lot for your interest! Feel free to continue asking questions in the issues here and I will offer further advice if I can.