Skip to content

Commit

Permalink
removed unnecessary restoration of orientation on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed May 2, 2022
1 parent 733ad2c commit 4bd8d66
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions iOS/RCTOrientation/Orientation.m
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ - (void)lockToOrientation:(UIInterfaceOrientation) newOrientation usingMask:(UII
[currentDevice setValue:@(UIInterfaceOrientationUnknown) forKey:orientation];
[currentDevice setValue:@(newOrientation) forKey:orientation];

// restore device orientation
[currentDevice setValue:@(deviceOrientation) forKey:orientation];

[UIViewController attemptRotationToDeviceOrientation];

[self sendEventWithName:@"lockDidChange" body:@{orientation: [self getOrientationStr:newOrientation]}];
Expand Down

0 comments on commit 4bd8d66

Please sign in to comment.