From b2faeb6ad6c74199c083a87311d90bb6604be2d6 Mon Sep 17 00:00:00 2001 From: Arnold Szabo Date: Tue, 17 Mar 2026 13:39:54 +0100 Subject: [PATCH] fix: add missing onPreferredSmartSubtitleChanged prop --- Video.tsx | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Video.tsx b/Video.tsx index e4d0b86c56..63cabfe226 100644 --- a/Video.tsx +++ b/Video.tsx @@ -166,6 +166,10 @@ export default class Video extends React.PureComponent { this.props.onSubtitleTrackChanged?.(event.nativeEvent); } + onPreferredSmartSubtitlesChanged = (event) => { + this.props.onPreferredSmartSubtitlesChanged?.(event.nativeEvent); + } + /** * @description seeks to a specified time in the video * @param time video time in seconds @@ -224,6 +228,7 @@ export default class Video extends React.PureComponent { onPlayPauseAction: this.onPlayPauseAction, onAudioTrackChanged: this.onAudioTrackChanged, onSubtitleTrackChanged: this.onSubtitleTrackChanged, + onPreferredSmartSubtitlesChanged: this.onPreferredSmartSubtitlesChanged, }; }; diff --git a/package.json b/package.json index f24385633d..91ded82deb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-video", - "version": "7.14.11", + "version": "7.14.12", "dorisAndroidVersion": "5.6.5-1", "messagingAndroidVersion": "1.1.0", "description": "A