JSX to Live Activity: The Story of Voltra
summary
Voltra translates JSX into native iOS Live Activities and Android widgets by building a custom React renderer that emits SwiftUI primitives, supports Dynamic Island variants, and provides hot reload for Live Activities. Key constraints: a strict 4KB payload limit forced compression, identifier packing and a shared registry of styles and elements. Server-side rendering uses a lightweight reconciler with a custom hook dispatcher; images are prefetch-stored and charts are rendered to images so the system works in production.
AI-written summary · about
chapters (17)
- 0:00Introduction and speaker intro
- 1:58Voltra project origin story
- 3:24How Voltra works with React Native
- 5:09Requirements for Voltra's renderer
- 7:16Building a React renderer
- 9:03Core renderer implementation
- 9:25Styling challenges in SwiftUI
- 10:50Supporting Dynamic Island variants
- 11:57Payload size limitations
- 13:23Optimizing payload for live activities
- 14:32Element reuse for complex UIs
- 15:36Push notifications and server-side rendering
- 16:39Homemade renderer for server-side
- 17:23Implementing React hooks in Voltra
- 18:48Context handling in Voltra
- 19:49Handling images and charts
- 20:11Resources and call to action
