Skip to content

Commit

Permalink
Cleanup initial Paper fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kkafar committed Aug 17, 2023
1 parent 4d8a98e commit 737e397
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions ios/RNSScreen.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 737e397

Please sign in to comment.