Commit ac6d8e3
fix(iOS): Respect all screen orientations on iPad (#3609)
## Description
On iPad, SDK 55 router app would remain in landscape layout when the
iPad was turned upside down. This was because `RNSScreen.mm` had the
`UIInterfaceOrientationMaskAllButUpsideDown` set for allowed screen
rotations.
## Changes
Detect when running on iPad, and change the allowed screen orientations
to `UIInterfaceOrientationMaskAll`. On non-iPad devices, behavior is
unchanged.
## Test plan
Tested on iPad simulator.
---------
Co-authored-by: Kacper Kafara <kacperkafara@gmail.com>1 parent 82ce103 commit ac6d8e3
3 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2097 | 2097 | | |
2098 | 2098 | | |
2099 | 2099 | | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
2100 | 2103 | | |
2101 | 2104 | | |
2102 | 2105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
0 commit comments