Skip to content

Commit

Permalink
fix: declare supportedInterfaceOrientations only on iOS (#46512)
Browse files Browse the repository at this point in the history
Summary:
This PR adds an ifdef to declare `supportedInterfaceOrientations` only on iOS as this property does not affect other platforms causing a build issue.

## Changelog:

[IOS] [ADDED] - declare supportedInterfaceOrientations only on iOS

Pull Request resolved: #46512

Test Plan: CI Green

Reviewed By: christophpurrer

Differential Revision: D62754746

Pulled By: javache

fbshipit-source-id: e2ca5d96cba87e611c48a87f10bf7831e9051646
  • Loading branch information
okwasniewski authored and facebook-github-bot committed Sep 16, 2024
1 parent e8dd036 commit 40c5e6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ - (BOOL)prefersStatusBarHidden
return [RCTUIStatusBarManager() isStatusBarHidden];
}

#if RCT_DEV
#if RCT_DEV && TARGET_OS_IOS
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
UIInterfaceOrientationMask appSupportedOrientationsMask =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ - (BOOL)prefersStatusBarHidden
return _preferredStatusBarHidden;
}

#if RCT_DEV
#if RCT_DEV && TARGET_OS_IOS
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
UIInterfaceOrientationMask appSupportedOrientationsMask =
Expand Down

0 comments on commit 40c5e6b

Please sign in to comment.