Support Link.AppleZoom (zoom transition) on tvOS
Oscar Nord
UIKit's zoom transition (UIViewController.Transition.zoom) is available on tvOS 18. It fits the focus-driven UI well: a focused poster can zoom into its detail screen, the same way Link.AppleZoom works on iOS today.
expo-router's native module is only built for iOS, though. ExpoRouter.podspec lists iOS as its only platform, and link/preview/native.tsx disables the native views when Platform.isTV is true.
I tried building the module for tvOS. It gives 53 compile errors in 9 files, and only 2 of them are in the zoom code (the availability check needs tvOS 18.0). The rest come from features that tvOS doesn't support:
- Head: the CoreSpotlight search APIs are unavailable on tvOS
- Link previews: context menus need tvOS 17, and the commit animations are unavailable
- Toolbar: the toolbar item APIs are unavailable on tvOS
Would you accept tvOS support for the zoom transition, with those features left out on tvOS? I'm happy to send the PR.