Remove ClosePlayer
This commit is contained in:
@@ -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 (
|
|
||||||
<Button onPress={closeModal}>CLOSE</Button>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default ClosePlayer;
|
|
||||||
@@ -20,7 +20,6 @@ export default function Player() {
|
|||||||
<StreamStatus />
|
<StreamStatus />
|
||||||
<ProgressBar />
|
<ProgressBar />
|
||||||
<MediaControls />
|
<MediaControls />
|
||||||
<ClosePlayer />
|
|
||||||
</>
|
</>
|
||||||
)} />
|
)} />
|
||||||
</GestureHandlerRootView>
|
</GestureHandlerRootView>
|
||||||
|
|||||||
Reference in New Issue
Block a user