question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Add 'replace' to stack navigator actions

See original GitHub issue

Per the react-navigation docs, there is a ‘replace’ function available for stack navigators, but this doesn’t seem to be supported in the react-native-screens stack-navigator.

https://reactnavigation.org/docs/navigation-prop/#navigator-dependent-functions

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
WoLewickicommented, Nov 9, 2020

Oh I can see what is the problem now. Can you check if #695 fixes this?

1reaction
WoLewickicommented, Nov 16, 2020

@sbalay 2.15.0 is out 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

StackActions reference - React Navigation
The replace action allows to replace a route in the navigation state. It takes the following arguments: name - string - A destination...
Read more >
StackActions reference - React Navigation
The following actions are supported: Reset - Replace current state with a new state; Replace - Replace a route at a given key...
Read more >
NavigationActions reference - React Navigation
Reset - Replace current state with a new state; Replace - Replace a route at a given key with another route; Push -...
Read more >
Navigation prop reference
In a native stack navigator, calling navigate with a screen name will result in different behavior based on if the screen is already...
Read more >
Stack Navigator | React Navigation
Stack Navigator provides a way for your app to transition between screens where each new screen is placed on top of a stack....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found