How to navigate between screens react native

Hi guys, In this article, we will learn about how to navigate between screens react native, to do this we are using react-navigation library v4.0, so let’s start with an example

1. Create a new project

2. Install the following dependencies

After successful installation run the following command to install the supporting dependencies

finally, install the following dependency

3. Create CartScreen.js

I have created one screen CartScreen.js

4. App.js

5. Output

Thank you 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *