We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1049016 commit 2202083Copy full SHA for 2202083
src/Screens/DetailsScreen/index.tsx
@@ -5,10 +5,21 @@ export default function DetailsScreen({ navigation }) {
5
return(
6
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
7
<Text>Details Screen</Text>
8
+ <Text>Navigation.PUSH</Text>
9
<Button
10
title="Ir para a Details novamente..."
11
onPress={() => {navigation.push('Details')}}
12
/>
13
+ <Text>Navigation.navigate para a HOME</Text>
14
+ <Button
15
+ title="Ir para a Home"
16
+ onPress={() => {navigation.navigate('Home')}}
17
+ />
18
+ <Text>Navigation.popToTop, retorna todas as telas.</Text>
19
20
+ title="Retornar"
21
+ onPress={() => {navigation.popToTop()}}
22
23
</View>
24
);
25
}
0 commit comments