Skip to content

Commit

Permalink
Update stack-actions.js (#1239)
Browse files Browse the repository at this point in the history
  • Loading branch information
DomiR authored Aug 7, 2024
1 parent ecc8b59 commit 6aa24b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/examples/7.x/stack-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ function ProfileScreen({ navigation, route }) {
<Text>Profile!</Text>
<Text>{route.params.user}'s profile</Text>
<Button
title="Push same screen on the stack"
title="Pop one screen from stack"
onPress={() => navigation.dispatch(StackActions.pop(1))}
/>
<Button
title="Pop one screen from stack"
title="Push same screen on the stack"
onPress={() =>
navigation.dispatch(StackActions.push('Profile', { user: 'Wojtek' }))
}
Expand Down

0 comments on commit 6aa24b6

Please sign in to comment.