react-native-community / react-native-community/template

iOS template (0.84) unintentionally drops iPhone landscape support in Info.plist (after #183)

Open Beginner friendly
#206 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
242
Forks
85
Avg merge
6d 16h
Merged PRs (30d)
3

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in template/ios/HelloWorld/Info.plist and inspect UISupportedInterfaceOrientations for iPhone and iPad. Reproduce with the 0.84.0 template using the listed CLI initialization steps, then verify that iPhone supports portrait and both landscape orientations while iPad retains all four.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native
Domain
mobile
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.