File tree 1 file changed +5
-0
lines changed
versioned_docs/version-7.x
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -40,14 +40,17 @@ import { createNativeStackNavigator } from '@react-navigation/native-stack';
40
40
import { Button } from ' @react-navigation/elements' ;
41
41
42
42
function HomeScreen () {
43
+ // highlight-next-line
43
44
const navigation = useNavigation ();
44
45
45
46
return (
46
47
< View style= {{ flex: 1 , alignItems: ' center' , justifyContent: ' center' }}>
47
48
< Text > Home Screen< / Text >
49
+ // highlight-start
48
50
< Button onPress= {() => navigation .navigate (' Details' )}>
49
51
Go to Details
50
52
< / Button>
53
+ // highlight-end
51
54
< / View>
52
55
);
53
56
}
@@ -127,9 +130,11 @@ function DetailsScreen() {
127
130
return (
128
131
< View style= {{ flex: 1 , alignItems: ' center' , justifyContent: ' center' }}>
129
132
< Text > Details Screen< / Text >
133
+ // highlight-start
130
134
< Button onPress= {() => navigation .navigate (' Details' )}>
131
135
Go to Details... again
132
136
< / Button>
137
+ // highlight-end
133
138
< / View>
134
139
);
135
140
}
You can’t perform that action at this time.
0 commit comments