bamlab / react-tv-space-navigation

A React Native module to handle spatial navigation for a TV application in a 100% cross-platform way
https://bamlab.github.io/react-tv-space-navigation/
MIT License
222 stars 19 forks source link

Vertical virtualization of horizontal lists. #167

Open EndyZhou opened 4 days ago

EndyZhou commented 4 days ago

Is your feature request related to a problem? Please describe. Could you provide an example of vertical virtualization for a horizontal list, similar to the UI shown below?

Describe the solution you'd like A clear and concise description of what you want to happen.

Diagrams and screenshots welcome!

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here. WeChat4198549466a5c8cb277b90809475fbaa

Yria commented 2 days ago

https://github.com/bamlab/react-tv-space-navigation/issues/158

This is not currently supported and requires either a listview inside a scrollview or a scrollview inside a listview. Since offsetFromStart only supports scrollview, you should choose one or the other depending on the scroll position when scrolling.