necolas / react-native-web

Cross-platform React UI packages

Home Page:https://necolas.github.io/react-native-web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RefreshControl: implementation

necolas opened this issue · 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

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

@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

@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

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)

commented

5 years later, Any update on this?