馃悰 Bug Report
Popover renders its content in a React Native Modal and passes supportedOrientations straight through, with no default. On iOS a Modal without supportedOrientations only supports portrait, so a popover opened while an iPad is in landscape is presented in portrait orientation.
Popover itself and OverflowMenu (which spreads its props into Popover) let the app pass supportedOrientations, but Select, Datepicker and RangeDatepicker create their Popover with a fixed set of props and do not forward it, so there is no way to fix it from the app.
To Reproduce
- Run an app that supports landscape (
supportsTablet: true, all orientations allowed) on an iPad.
- Rotate the iPad to landscape.
- Open a
Select or a Datepicker.
- The popover is presented in portrait orientation instead of following the app.
Expected behavior
The popover follows the orientation of the app. Either Popover defaults supportedOrientations to all orientations (the app's Info.plist still restricts it), or Select / Datepicker / RangeDatepicker forward supportedOrientations to their Popover.
We currently patch Popover to default to ['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'].
UI Kitten and Eva version
| Package |
Version |
| @ui-kitten/eva |
6.0.2 |
| @ui-kitten/components |
6.1.3 |
Environment information
React Native 0.86.3, React 19.2.3, Expo SDK 57, iPadOS.
馃悰 Bug Report
Popoverrenders its content in a React NativeModaland passessupportedOrientationsstraight through, with no default. On iOS aModalwithoutsupportedOrientationsonly supports portrait, so a popover opened while an iPad is in landscape is presented in portrait orientation.Popoveritself andOverflowMenu(which spreads its props intoPopover) let the app passsupportedOrientations, butSelect,DatepickerandRangeDatepickercreate theirPopoverwith a fixed set of props and do not forward it, so there is no way to fix it from the app.To Reproduce
supportsTablet: true, all orientations allowed) on an iPad.Selector aDatepicker.Expected behavior
The popover follows the orientation of the app. Either
PopoverdefaultssupportedOrientationsto all orientations (the app's Info.plist still restricts it), orSelect/Datepicker/RangeDatepickerforwardsupportedOrientationsto theirPopover.We currently patch
Popoverto default to['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'].UI Kitten and Eva version
Environment information
React Native 0.86.3, React 19.2.3, Expo SDK 57, iPadOS.