diff --git a/src/components/Colors.tsx b/src/components/Colors.tsx index 2e7b4f6..07c8fbd 100644 --- a/src/components/Colors.tsx +++ b/src/components/Colors.tsx @@ -2,7 +2,7 @@ import { BlurView, BlurViewProps } from '@react-native-community/blur'; import { THEME_COLOR } from 'CONSTANTS'; import React, { PropsWithChildren } from 'react'; import { useContext } from 'react'; -import { ColorSchemeName, Platform, StyleSheet, useColorScheme, View } from 'react-native'; +import { ColorSchemeName, Platform, StyleSheet, useColorScheme } from 'react-native'; const majorPlatformVersion = typeof Platform.Version === 'string' ? parseInt(Platform.Version, 10) : Platform.Version; diff --git a/src/screens/modals/Player/components/MediaControls.tsx b/src/screens/modals/Player/components/MediaControls.tsx index 99e53a8..ef8597c 100644 --- a/src/screens/modals/Player/components/MediaControls.tsx +++ b/src/screens/modals/Player/components/MediaControls.tsx @@ -10,10 +10,10 @@ import PauseIcon from 'assets/icons/pause.svg'; const BUTTON_SIZE = 40; -const pause = TrackPlayer.pause; -const play = TrackPlayer.play; -const next = TrackPlayer.skipToNext; -const previous = TrackPlayer.skipToPrevious; +const pause = () => TrackPlayer.pause(); +const play = () => TrackPlayer.play(); +const next = () => TrackPlayer.skipToNext(); +const previous = () => TrackPlayer.skipToPrevious(); const Container = styled.View` align-items: center;