How to navigate between screens react native

Hi guys, In this article, we will learn about how to navigate between screens react native. In React native we have to use the React-Navigation library to navigate between screens, you need to install this library in your project also you have to install supporting libraries which is mandatory without this libraries react-navigation will not work properly so let’s start with an example

How to navigate between screens react native

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

How to navigate between screens react native

Thank you 🙂

Leave a Reply

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