-
-
Notifications
You must be signed in to change notification settings - Fork 597
Closed
Labels
Platform: tvOSIssue related with tvOS compatibilityIssue related with tvOS compatibilityRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided
Description
Description
When I add a header search bar to a screen on tvOS the app crashes as passing nil to UISearchController is not supported on tvOS.
Documentation of Apple.
https://developer.apple.com/documentation/uikit/uisearchcontroller/1618647-init
Exception:
Exception NSException * "Passing nil to -[UISearchController initWithSearchResultsController:] is not supported on this platform." 0x0000600000d54330
Steps to reproduce
- Add headerSearchBar to screen on tvOS
- Navigate to Screen with headerSearchBar
Basically adding this to a screen and opening screen on tvOS.

Snack or a link to a repository
Screens version
4.29.0
React Native version
0.72
Platforms
tvOS
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
None
Device
iOS simulator
Device model
Apple TV 4K
Acknowledgements
Yes
Metadata
Metadata
Assignees
Labels
Platform: tvOSIssue related with tvOS compatibilityIssue related with tvOS compatibilityRepro providedA reproduction with a snack or repo is providedA reproduction with a snack or repo is provided