Commit cb3c5191 authored by Brent Vatne's avatar Brent Vatne
Browse files

Merge pull request #78 from dpeek/fix/disable-layer-resize-animation

Disables default system animation when resizing AVPlayerLayer
parents 8a4fbaf6 05139303
Loading
Loading
Loading
Loading
+3 −0
Changes for RCTVideo.m: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -389,7 +389,10 @@ static NSString *const statusKeyPath = @"status";
- (void)layoutSubviews
{
  [super layoutSubviews];
  [CATransaction begin];
  [CATransaction setAnimationDuration:0];
  _playerLayer.frame = self.bounds;
  [CATransaction commit];
}

#pragma mark - Lifecycle