Question · React Native course · Module 3: Navigation

goBack and popToTop

How does navigation.goBack() differ from navigation.popToTop()?

Answer options

  • goBack goes back 1 screen, popToTop returns to the first screen
  • They work identically
  • popToTop is faster
  • goBack closes the application

You can check the correct answer by solving this task in the CodeWorlds game.