From 6ccac084dc982e00bf09f3735b348c4f8dda628b Mon Sep 17 00:00:00 2001 From: Leon Date: Thu, 12 Feb 2026 13:44:48 +0100 Subject: [PATCH] only show video once --- src/screens/Studio/Compose.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screens/Studio/Compose.js b/src/screens/Studio/Compose.js index 95a1403..fd38661 100644 --- a/src/screens/Studio/Compose.js +++ b/src/screens/Studio/Compose.js @@ -1,5 +1,6 @@ import React, { useEffect, useState } from 'react' import { View } from 'react-native' +import { useIsFocused } from '@react-navigation/native' import { background } from '../../assets' import FullscreenIntroVideo from '../../components/FullscreenIntroVideo' import GradientButton from '../../components/GradientButton' @@ -13,6 +14,7 @@ import { isWeb } from '../../hooks/useLayoutType' const Compose = () => { const { videos } = useUserData() + const isFocused = useIsFocused() const [videoUrl, setVideoUrl] = useState(null) @@ -40,7 +42,11 @@ const Compose = () => { /> - setVideoUrl(null)} /> + setVideoUrl(null)} + /> ) }