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 { /> )} - +