From 17b33de4d765b65bb6ef5ea3ba7a47a9337c9994 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 10 Jan 2022 17:13:20 +0100 Subject: [PATCH] fix: Simpler goBack --- example/src/MediaPage.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/example/src/MediaPage.tsx b/example/src/MediaPage.tsx index 7a7a6ed..5a29a4a 100644 --- a/example/src/MediaPage.tsx +++ b/example/src/MediaPage.tsx @@ -39,10 +39,6 @@ export function MediaPage({ navigation, route }: Props): React.ReactElement { const isVideoPaused = !isForeground || !isScreenFocused; const [savingState, setSavingState] = useState<'none' | 'saving' | 'saved'>('none'); - const onClosePressed = useCallback(() => { - navigation.goBack(); - }, [navigation]); - const onMediaLoad = useCallback((event: OnLoadData | NativeSyntheticEvent) => { if (isVideoOnLoadEvent(event)) { console.log( @@ -110,7 +106,7 @@ export function MediaPage({ navigation, route }: Props): React.ReactElement { /> )} - +