Bringing the Best of React to TV Navigation: A React-Like Solution for Remote Control
summary
A React-style declarative system that builds a separate spatial tree and syncs it with the React tree to handle remote D‑pad navigation across Android TV, Apple TV and web, implemented on top of BBC’s elleride engine and a custom registry. Key bug: effect-phase registration orders nodes before parents, so a useBeforeMountEffect runs registration during render; nested React context passes parent IDs. Prototype focuses correctly, but virtualized lists, overlapping pages and side menus still require work; adding a single button once took three hours before this change.
AI-written summary · about
chapters (10)
- 0:00Introduction and motivation
- 3:32TV navigation challenges
- 8:53First iteration and dead ends
- 12:05Designing a declarative API
- 17:40React render order pitfalls
- 23:18Solving registration order issues
- 27:36Custom hook for render-phase effects
- 29:24Final solution and results
- 30:28Developer experience improvements
- 31:12Conclusion and Q&A
