Skip to content

Commit

Permalink
fix(iOS): fix not defined _needReplay on old arch
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Sep 18, 2024
1 parent 23b04ef commit d9b9510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ios/ReactNativeVideoPlayerView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ - (void)removeFromSuperview
- (void)prepareForRecycle
{
[_player pause];
#ifdef RCT_NEW_ARCH_ENABLED
_needReplay = YES;
#endif
}

- (void)_release
Expand Down

0 comments on commit d9b9510

Please sign in to comment.