feat: stop music for playbacks
This commit is contained in:
@@ -547,6 +547,15 @@ const SongDownload = ({ route }) => {
|
||||
setAdventureChoice('stop')
|
||||
}, [])
|
||||
|
||||
const handleGoHome = useCallback(() => {
|
||||
navigate(Routes.BottomTab, {
|
||||
screen: Routes.HomeStack,
|
||||
params: {
|
||||
screen: Routes.Home,
|
||||
},
|
||||
})
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<Page backgroundImg={background.studioBG2} headerType="NONE">
|
||||
<MusicLandHeader onPressBack={handleBackPress} progress={84} />
|
||||
@@ -592,6 +601,11 @@ const SongDownload = ({ route }) => {
|
||||
|
||||
|
||||
<ClubAdvantagesCard style={styles.clubCardSpacing} />
|
||||
<GradientButton
|
||||
title="Revenir à l'accueil"
|
||||
onPress={handleGoHome}
|
||||
containerStyle={styles.returnHomeButton}
|
||||
/>
|
||||
</ScrollView>
|
||||
) : (
|
||||
<View style={styles.adventureGatePlaceholder} />
|
||||
@@ -703,6 +717,12 @@ const styles = StyleSheet.create({
|
||||
clubCardSpacing: {
|
||||
marginTop: gutters * 0.5,
|
||||
},
|
||||
returnHomeButton: {
|
||||
width: '100%',
|
||||
maxWidth: 320,
|
||||
alignSelf: 'center',
|
||||
marginTop: gutters * 0.6,
|
||||
},
|
||||
})
|
||||
|
||||
export default SongDownload
|
||||
|
||||
Reference in New Issue
Block a user