xxxxxxxxxx
onPress={() =>
navigation.navigate('Root', {
screen: 'Settings',
params: { user: 'jane' },
})
}
Looks better
than
onPress={()=>navigation.navigate("Root", {user:"jane"}
The second one works but you don't get the sliding motion.