Change modal to native stacks

This commit is contained in:
Lei Nelissen
2022-05-04 19:12:01 +02:00
parent 2b24a37218
commit 76f2db19e5
15 changed files with 78 additions and 16 deletions

View File

@@ -16,6 +16,7 @@ import { useDispatch } from 'react-redux';
import { queueTrackForDownload, removeDownloadedTrack } from 'store/downloads/actions';
import usePlayTracks from 'utility/usePlayTracks';
import { selectIsDownloaded } from 'store/downloads/selectors';
import { View } from 'react-native';
type Route = RouteProp<ModalStackParams, 'TrackPopupMenu'>;
@@ -68,7 +69,7 @@ function TrackPopupMenu() {
}, [trackId, dispatch, closeModal]);
return (
<Modal fullSize={false}>
<View>
<Container>
<SubHeader style={{ textAlign: 'center' }}>{track?.Name}</SubHeader>
<Text style={{ marginBottom: 18, textAlign: 'center' }}>{track?.Album} - {track?.AlbumArtist}</Text>
@@ -82,7 +83,7 @@ function TrackPopupMenu() {
)}
</WrappableButtonRow>
</Container>
</Modal>
</View>
);
}