-
Notifications
You must be signed in to change notification settings - Fork 67
Description
Description
As part of the work to support iPad window resizing (#183), the iOS community template shipped with RN 0.84 now lists only UIInterfaceOrientationPortrait under UISupportedInterfaceOrientations (iPhone). This removes iPhone landscape rotation for apps created from the current template, which has been the default behaviour for many years.
In the PR description for #183, the stated goal is to enable window resizing on iPad by listing all 4 orientations under UISupportedInterfaceOrientations~ipad. It doesn’t appear to intend changing iPhone behaviour. 
Current template behaviour (0.84)
In template/ios/HelloWorld/Info.plist, iPhone supported orientations are effectively portrait-only, whilst iPad has all four orientations. 
Expected behaviour
The template should keep the historical default for iPhone (portrait + both landscapes), whilst retaining the iPad-specific orientations needed for window resizing.
Impact
New iPhone apps created with @react-native-community/cli + the 0.84 template won’t rotate to landscape without manual plist changes.
Steps to reproduce
1. npx @react-native-community/cli init AwesomeProject (current/0.84 template)
2. Run on an iPhone simulator/device
3. Rotate device → app remains portrait-only
React Native Community Template Version
0.84.0
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli@latest info
RN % npx @react-native-community/cli@latest info
error: unknown command 'info'
(Did you mean init?)
Stacktrace or Logs
N/A
Reproducer
https://github.com/react-native-community/template
Screenshots and Videos
No response