RNVideo in overlay prevents the componentDidUnmount from being triggered
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- react-native
- 領域
- mobile
調査の方向性
まず、react-native-videoコンポーネントを含むOverlayで問題を再現し、次にoverlayのdismissおよびunmountの動作を調査します。Overlayをdismissするとコンポーネントのcleanupが実行され、動画または音声がバックグラウンドで再生され続けなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happened?
When showing a Overlay with a RNVideo component from react-native-video, the Video prevents the view from being unmounted on dismiss. I noticed this because my RNVideo was still playing in the background when I dismissed the overlay.
In other words, once you have a video playing, this code:
useEffect(() => {
console.log('mounted');
return () => {
console.log('unmounted');
};
}, []);
will only print mounted to the console, unmounted will never be called.
What was the expected behaviour?
I expect it to actually unmount like a normal Screen (push) does.
Was it tested on latest react-native-navigation?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!
- Show overlay with video
- Dismiss overlay
- Notice the overlay component still being "mounted" in native view hierarchy (video/audio still playing)
In what environment did this happen?
React Native Navigation version: 7.48.0
React Native version: 0.77
Has Fabric (React Native's new rendering system) enabled: (yes/no) no
Node version: 20
Device model: iPhone 17 Simulator
iOS version: 26
- 主要言語
- MDX
- スター
- 13.2k
- フォーク
- 2.6k
- 平均マージ
- 3時間 21分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wix/react-native-navigation のほかの issue
-
needs triage triage: documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
wix/react-native-navigation#8343 · コメント 1 件 ·
-
[Fix] searchBar `focus:` true ignored on mergeOptions when searchController already exists対応中かも @IsaacIsrael が 162 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
wix/react-native-navigation#8318 ·
-
needs triage type: accepted/bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
wix/react-native-navigation#8365 · コメント 2 件 ·
-
`showOverlay` creates a scene-less `UIWindow`, so overlays never appear under UIScene lifecycle対応中かも @yedidyak が 7 日前に担当しました。 オープンplatform: iOS type: accepted/bug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
wix/react-native-navigation#8345 · コメント 2 件 · リアクション 2 件 ·
-
platform: iOS type: accepted/bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
wix/react-native-navigation#8340 ·
wix/react-native-navigation の issue をすべて見る
似ている issue
-
[Submission] 湘办通オープンsubmit-adaption submit-adaption-pre
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
BetterAndroid/android-notification-icon-project#856 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
jules
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-learning-exchange/myplanet#18568 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Login shows only "Log-in failed" when Commons answers the login request with an API errorオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
commons-app/apps-android-commons#7295 ·
メンテナーはふだん 1 日以内に返信
-
SchedulerBinding.requestPerformanceMode(mode) does not forward the requested mode to the engine.オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
mitchib1440/SpeakThat#163 · コメント 1 件 ·