You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to re-use a component between my react-native App and my react Web App; it's a list of posts that we can scroll indefinitely down to load more posts (à la Twitter).
On the App this component is fullscreen, but on the Web it is just one column of a dashboard. The older posts need to be loaded when the whole page/body scroll down.
Do to so it isn't supported if I understood correctly this paragraph .
Following this comment I hack a system that listen to window scroll event and call the VirtualizedList _onScroll() with a fake event.
This works most of time but sometimes I end up with onEndReached being call in loop until all posts are loaded :-(
Do you see a better way to do that without modifying react-native-web?
Would you accept PR that add this feature?
If it is the case, my understanding of the project is very limited but I think we will need a way to override ScrollViewClass in ScrollView with a specific implementation that listen to touch, scroll... events on body instead of a nested View. Does that seems the right way?
The text was updated successfully, but these errors were encountered:
I want to re-use a component between my react-native App and my react Web App; it's a list of posts that we can scroll indefinitely down to load more posts (à la Twitter).
On the App this component is fullscreen, but on the Web it is just one column of a dashboard. The older posts need to be loaded when the whole page/body scroll down.
Do to so it isn't supported if I understood correctly this paragraph .
Following this comment I hack a system that listen to window scroll event and call the VirtualizedList
_onScroll()
with a fake event.This works most of time but sometimes I end up with
onEndReached
being call in loop until all posts are loaded :-(Do you see a better way to do that without modifying react-native-web?
Would you accept PR that add this feature?
If it is the case, my understanding of the project is very limited but I think we will need a way to override
ScrollViewClass
inScrollView
with a specific implementation that listen to touch, scroll... events on body instead of a nested View. Does that seems the right way?The text was updated successfully, but these errors were encountered: