From 737e3971992b534e3dfbd6797965ec547b6e2475 Mon Sep 17 00:00:00 2001 From: Kacper Kafara Date: Thu, 17 Aug 2023 14:27:36 +0200 Subject: [PATCH] Cleanup initial Paper fix --- ios/RNSScreen.mm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ios/RNSScreen.mm b/ios/RNSScreen.mm index 45e1b18c50..644dd48c59 100644 --- a/ios/RNSScreen.mm +++ b/ios/RNSScreen.mm @@ -117,13 +117,11 @@ - (void)updateBounds #else CAAnimation *sizeAnimation = [self.layer animationForKey:@"bounds.size"]; if (sizeAnimation && self.layer.presentationLayer.bounds.size.height > self.bounds.size.height) { - CABasicAnimation *another = [CABasicAnimation new]; - another.duration = sizeAnimation.duration; - another.beginTime = sizeAnimation.beginTime; - another.delegate = self; - [self.layer addAnimation:another forKey:@"blablabla"]; - // sizeAnimation. - // sizeAnimation.delegate = self; + CABasicAnimation *callbackOnlyAnimation = [CABasicAnimation new]; + callbackOnlyAnimation.duration = sizeAnimation.duration; + callbackOnlyAnimation.beginTime = sizeAnimation.beginTime; + callbackOnlyAnimation.delegate = self; + [self.layer addAnimation:callbackOnlyAnimation forKey:@"rns_sheet_animation"]; } else { [_bridge.uiManager setSize:self.bounds.size forView:self]; }