What is the purpose of the navigate() function in React Navigation?
The navigate() function in React Navigation is used to navigate between different screens in the app. It allows you to specify the name of the screen you want to navigate to and any additional parameters to pass to the screen.