minor fixes
This commit is contained in:
@@ -97,7 +97,7 @@ const ScoreModal = (props: ScoreModalProps) => {
|
||||
type="outlined"
|
||||
title={translate('playAgain')}
|
||||
onPress={() =>
|
||||
navigation.dispatch(StackActions.replace('Play', { songId: props.songId }))
|
||||
navigation.replace('Play', { songId: props.songId })
|
||||
}
|
||||
/>
|
||||
<ButtonBase
|
||||
@@ -105,9 +105,11 @@ const ScoreModal = (props: ScoreModalProps) => {
|
||||
icon={Play}
|
||||
type="filled"
|
||||
title={translate('menuMusic')}
|
||||
onPress={() =>
|
||||
navigation.canGoBack() ? navigation.goBack() : navigation.navigate('Home')
|
||||
}
|
||||
onPress={() => {
|
||||
navigation.canGoBack()
|
||||
? navigation.goBack()
|
||||
: navigation.replace('Tabs', { screen: 'Home' });
|
||||
}}
|
||||
/>
|
||||
</Row>
|
||||
</Column>
|
||||
|
||||
@@ -194,7 +194,6 @@ function MusicListComponent({
|
||||
// FlatList: Renders list efficiently, only rendering visible items.
|
||||
return (
|
||||
<FlatList
|
||||
nestedScrollEnabled
|
||||
style={styles.container}
|
||||
ListHeaderComponent={headerComponent}
|
||||
data={musicListState.displayedMusics}
|
||||
@@ -225,7 +224,6 @@ const styles = StyleSheet.create({
|
||||
flex: 1,
|
||||
gap: 2,
|
||||
borderRadius: 10,
|
||||
overflow: 'hidden',
|
||||
},
|
||||
footerContainer: {
|
||||
height: 60,
|
||||
|
||||
Reference in New Issue
Block a user