RNVideo in overlay prevents the componentDidUnmount from being triggered
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- react-native
- Ambito
- mobile
Direzione di ricerca
Inizia riproducendo il problema con un Overlay contenente un componente react-native-video, quindi esamina il comportamento di chiusura e unmount dell’overlay. Il lavoro è completato quando la chiusura dell’overlay attiva la pulizia del componente e il video o l’audio non continua più a essere riprodotto in background.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- MDX
- Stelle
- 13.2k
- Fork
- 2.6k
- Merge medio
- 3h 21m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wix/react-native-navigation
-
needs triage triage: documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wix/react-native-navigation#8343 · 1 commento ·
-
[Fix] searchBar `focus:` true ignored on mergeOptions when searchController already existsForse già presa @IsaacIsrael l’ha presa 161 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
wix/react-native-navigation#8318 ·
-
Build Failed with RN 0.87Apertaneeds triage type: accepted/bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
wix/react-native-navigation#8365 · 2 commenti ·
-
`showOverlay` creates a scene-less `UIWindow`, so overlays never appear under UIScene lifecycleForse già presa @yedidyak l’ha presa 7 giorni fa. Apertaplatform: iOS type: accepted/bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
wix/react-native-navigation#8345 · 2 commenti · 2 reazioni ·
-
platform: iOS type: accepted/bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
wix/react-native-navigation#8340 ·
Tutte le issue di wix/react-native-navigation
Issue simili
-
Area-UIUX Issue-Bug Issue-Easy (good first issue)
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
TeamAmaze/AmazeFileManager#4769 ·
I maintainer di solito rispondono entro 7 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
GHRik/bielik_oneclick_launcher#36 ·
I maintainer di solito rispondono entro 1 giorno
-
`entitlementVerificationMode` defaults to `DISABLED` and overrides the native default (`INFORMATIONAL`)Forse già presa @AlvaroBrey l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
RevenueCat/react-native-purchases#2127 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Dynamic tenant & baby profile binding in TimelineVaccinesScreen (replace hardcoded 'Baby Leo')Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100