Front: Settings Navigator: Allow passing screen name as props
This commit is contained in:
@@ -89,8 +89,7 @@ const ProfileView = () => {
|
||||
<PlayerStats/>
|
||||
<Box w="10%" paddingY={10} paddingLeft={5} paddingRight={50} zIndex={1}>
|
||||
<TextButton
|
||||
onPress={() => navigation.navigate('Settings')}
|
||||
style={{margin: 10}}
|
||||
onPress={() => navigation.navigate('Settings', { screen: 'Profile' })}
|
||||
translate={{ translationKey: 'settingsBtn' }}
|
||||
/>
|
||||
</Box>
|
||||
|
||||
Reference in New Issue
Block a user