From a402757c96f818f0da68159fea26cf635073bed6 Mon Sep 17 00:00:00 2001 From: Lei Nelissen Date: Sun, 12 Jun 2022 23:24:32 +0200 Subject: [PATCH] Remove ClosePlayer --- .../modals/Player/components/ClosePlayer.tsx | 21 ------------------- src/screens/modals/Player/index.tsx | 1 - 2 files changed, 22 deletions(-) delete mode 100644 src/screens/modals/Player/components/ClosePlayer.tsx diff --git a/src/screens/modals/Player/components/ClosePlayer.tsx b/src/screens/modals/Player/components/ClosePlayer.tsx deleted file mode 100644 index c8c0af1..0000000 --- a/src/screens/modals/Player/components/ClosePlayer.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { useNavigation } from '@react-navigation/native'; -import Button from 'components/Button'; -import React, { useCallback } from 'react'; -import { Platform } from 'react-native'; - -function ClosePlayer() { - const navigation = useNavigation(); - const closeModal = useCallback(() => { - navigation.pop(); - }, [navigation]); - - if (Platform.OS === 'ios') { - return null; - } - - return ( - - ); -} - -export default ClosePlayer; \ No newline at end of file diff --git a/src/screens/modals/Player/index.tsx b/src/screens/modals/Player/index.tsx index 455bc4a..d940854 100644 --- a/src/screens/modals/Player/index.tsx +++ b/src/screens/modals/Player/index.tsx @@ -20,7 +20,6 @@ export default function Player() { - )} />