RefreshControl: implementation
necolas opened this issue ยท 9 comments
This functionality is pretty important for my use case.
I tried to make piranna's solution work but I ended up implementing my own solution as a package called react-native-web-refresh-control
.
Example Snack: https://snack.expo.io/@niciusb/refreshcontrol-example
@necolas I've added a PR implementing this component, please have a look.
Would love to address any review suggestions from your side
@NiciusB 's implementation works, @sudhanshu16 's one doesn't...i don't know why, same code, only different import
I noticed that if you provide SectionList
with a refreshControl
prop, it renders nothing on web. It took me a while to realize that since RefreshControl
was not implemented, that it was the cause!
I'm assuming this is the case for ScrollList
and VirtualizedList
too since SectionList
uses VirtualizedList
uses ScrollView
.
What's the best way to note this gotcha? (Happy to contribute to docs, let me know where I can make some updates! :D)
5 years later, Any update on this?
when refresh in a web props undefined error occurs any one have an idea to solved this type of issue ..???