Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use setRoot vs setStackRoot [closed]

Guys who use wix navigation, can you explain when it is better to use Navigation.setStackRoot(), what is its advantage over regular Navigation.setRoot()

like image 867
frostynigth Avatar asked Jul 19 '26 19:07

frostynigth


1 Answers

  • setRoot is used to change the whole layout of your app.
  • setStackRoot is used to reset a single stack

For more details check the documentation: https://wix.github.io/react-native-navigation/#/docs/screen-api

like image 79
Nidhin Kumar Avatar answered Jul 22 '26 20:07

Nidhin Kumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!