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
205 stars 18 forks source link

When should I use this lib instead of `TVFocusGuideView` provided by react-native-tvos #124

Closed evoactivity closed 4 months ago

evoactivity commented 4 months ago

It seems they both solve the same problem. What benefits does this library offer over TVFocusGuideView?

pierpo commented 4 months ago

Hey!

The main benefit is cross-platform compatibility and predictability. The lib allows to have a behaviour that is 100% identical across tvOS / AndroidTV / web TVs.

If you're not interested in web compatibility, I would say that you might be better off with the native focus system that is becoming better and better 😊 There are still issues with the native system that you wouldn't get with this library, but this library has other trade-offs (most notably the accessibility support and some implementation tricks that are not super obvious - even though you can see them in our example).

Cheers 👋