react-native-web icon indicating copy to clipboard operation
react-native-web copied to clipboard

RefreshControl: implementation

Open necolas opened this issue 6 years ago • 9 comments

https://facebook.github.io/react-native/docs/refreshcontrol

necolas avatar Jul 07 '18 02:07 necolas

https://github.com/piranna/react-native-web-extended/blob/master/src/components/RefreshControl/index.js

piranna avatar Jul 07 '18 08:07 piranna

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

NiciusB avatar Sep 26 '19 17:09 NiciusB

I like to work on that, @necolas do you have any task in progress or any idea?

hosseinmd avatar Nov 29 '20 07:11 hosseinmd

@necolas I've added a PR implementing this component, please have a look. Would love to address any review suggestions from your side

sudhanshug16 avatar Jan 02 '21 14:01 sudhanshug16

@NiciusB 's implementation works, @sudhanshu16 's one doesn't...i don't know why, same code, only different import

feduss avatar Jan 26 '21 10:01 feduss

@feduss. Can you describe(code snippet is welcomed) how you are using it? Please mention the same in the PR #1861 as it concerns my implementation and not the issue itself. Thanks

sudhanshug16 avatar Jan 26 '21 11:01 sudhanshug16

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)

cranberryofdoom avatar Feb 24 '23 21:02 cranberryofdoom

5 years later, Any update on this?

likeSo avatar Mar 29 '23 09:03 likeSo

when refresh in a web props undefined error occurs any one have an idea to solved this type of issue ..???

Parmar-Bansi avatar Feb 07 '24 11:02 Parmar-Bansi