Commit bcecb6ed authored by Baris Sencan's avatar Baris Sencan
Browse files

Set video gravity on main thread

parent f83da614
Loading
Loading
Loading
Loading
+2 −0
Changes for RCTVideo.m: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -287,7 +287,9 @@ static NSString *const statusKeyPath = @"status";
- (void)setResizeMode:(NSString*)mode
{
  _resizeMode = mode;
  dispatch_async(dispatch_get_main_queue(), ^{
    _playerLayer.videoGravity = mode;
  });
}

- (void)setPaused:(BOOL)paused