Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Feb 13, 2024
1 parent 96b9fc0 commit d94058d
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,6 @@ - (void)finalizeUpdates:(RNComponentViewUpdateMask)updateMask
- (void)didSetProps:(NSArray<NSString *> *)changedProps
{
[super didSetProps:changedProps];
if ([changedProps containsObject:@"stackPresentation"]) {
NSLog(@"RNSScreen %p has set stackPresentation to: %ld", self.controller, self.stackPresentation);
}
#if !TARGET_OS_TV
[self updatePresentationStyle];
#endif // !TARGET_OS_TV
Expand Down Expand Up @@ -903,7 +900,6 @@ - (instancetype)initWithView:(UIView *)view
#ifdef RCT_NEW_ARCH_ENABLED
_initialView = (RNSScreenView *)view;
#endif
NSLog(@"RNSScreen %p created with RNSScreenView %p", self, self.view);
}
return self;
}
Expand Down Expand Up @@ -1229,10 +1225,6 @@ - (UIViewController *)findChildVCForConfigAndTrait:(RNSWindowTrait)trait includi
{
UIViewController *lastViewController = [[self childViewControllers] lastObject];
if ([self.presentedViewController isKindOfClass:[RNSScreen class]]) {
NSLog(
@"RNSScreen %p found that presentedViewController is of class RNSScreen %p",
self,
self.presentedViewController);
lastViewController = self.presentedViewController;

// In case of fullScreenModal we want to ask for orientation specifically the screen underneath,
Expand Down Expand Up @@ -1351,25 +1343,11 @@ - (UIStatusBarAnimation)preferredStatusBarUpdateAnimation

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
NSLog(@"RNSScreen %p supportedInterfaceOrientations", self);
UIViewController *vc = [self findChildVCForConfigAndTrait:RNSWindowTraitOrientation includingModals:YES];

if ([vc isKindOfClass:[RNSScreen class]]) {
UIInterfaceOrientationMask mask = ((RNSScreen *)vc).screenView.screenOrientation;
NSLog(
@"RNSScreen %p supportedInterfaceOrientations found vc %p with orientation %ld; self?: %d",
self,
vc,
mask,
self == vc);
return ((RNSScreen *)vc).screenView.screenOrientation;
}
NSLog(
@"RNSScreen %p supportedInterfaceOrientations found vc %p with orientation %ld; self?: %d",
self,
vc,
UIInterfaceOrientationMaskAllButUpsideDown,
self == vc);
return UIInterfaceOrientationMaskAllButUpsideDown;
}

Expand Down

0 comments on commit d94058d

Please sign in to comment.