Building for TV Devices
Add support for TV Devices:
- Platform.isTV
- hasTVPreferredFocus
- nextFocusLeft
- nextFocusRight
- nextFocusTop
- nextFocusBottom
- TVEventHandler global events
- Touchable events
- Touchable UI changes on select
Demo app : https://github.com/dev-seb/react-native-tv-demo
The expected behaviour is the same as for AndroidTV and tvOS, and only if Platform.isTV property is true.
For Platform.isTV is should be possible to parse the User Agent, but env variable seems more suitable to specify whether or not the current app is targeting TVs.
For spatial navigation, the demo relies for web on the third party library Spatial Navigation Polyfill.
Hello, possible to solve those conflicts @dev-seb ? thx
It should be solved with 549ec21
Hi @necolas , possible to have this PR in the next release ? should the warning be addressed @dev-seb ? thx anyway
@necolas What became of this PR? This is really needed
Is there any way to help merge this PR?