Skip to content

Commit 31fdaea

Browse files
authored
The current route name is route.name (react-navigation#726)
1 parent 62d2902 commit 31fdaea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versioned_docs/version-5.x/route-prop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function ProfileScreen({ route }) {
1616
return (
1717
<View>
1818
<Text>This is the profile screen of the app</Text>
19-
<Text>{route.params.name}</Text>
19+
<Text>{route.name}</Text>
2020
</View>
2121
);
2222
}

0 commit comments

Comments
 (0)