Skip to content

Commit 8f0e660

Browse files
authored
feat: support window resizing on iPad out-of-the-box (#183)
1 parent e319a2f commit 8f0e660

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

template/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,10 @@
273273
);
274274
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
275275
PRODUCT_NAME = HelloWorld;
276+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
276277
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
277278
SWIFT_VERSION = 5.0;
279+
TARGETED_DEVICE_FAMILY = "1,2";
278280
VERSIONING_SYSTEM = "apple-generic";
279281
};
280282
name = Debug;
@@ -300,7 +302,9 @@
300302
);
301303
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier)";
302304
PRODUCT_NAME = HelloWorld;
305+
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
303306
SWIFT_VERSION = 5.0;
307+
TARGETED_DEVICE_FAMILY = "1,2";
304308
VERSIONING_SYSTEM = "apple-generic";
305309
};
306310
name = Release;

template/ios/HelloWorld/Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,13 @@
4545
<key>UISupportedInterfaceOrientations</key>
4646
<array>
4747
<string>UIInterfaceOrientationPortrait</string>
48+
</array>
49+
<key>UISupportedInterfaceOrientations~ipad</key>
50+
<array>
4851
<string>UIInterfaceOrientationLandscapeLeft</string>
4952
<string>UIInterfaceOrientationLandscapeRight</string>
53+
<string>UIInterfaceOrientationPortrait</string>
54+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
5055
</array>
5156
<key>UIViewControllerBasedStatusBarAppearance</key>
5257
<false/>

0 commit comments

Comments
 (0)