feat: support window resizing on iPad out-of-the-box #183
+9
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
The motivation for this PR is for any app generated with the RN Community CLI using this template to include support for window resizing (by dragging the bottom-right corner) on iPads out-of-the-box. One example voice for such feature from the community can be found in facebook/react-native#54105.
There are 2 changes required to bring support for window resizing on iPad:
project.pbxprojfor the app not to run in compatibility modeChangelog:
[IOS] [ADDED] - List iPhone and iPad as supported targets in project.pbxproj, support all 4 orientations on iPad in Info.plist to enable window resizing on iPad
Test Plan:
Test locally with
npx @react-native-community/cli@latest init AwesomeProject --template=file:/path/to/templateResult before: unable to resize, as shown in facebook/react-native#54105
Result after: ability to resize to minimum size (same as e.g. the system calendar app):