From the course: React Native Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Navigating to different views with state

Navigating to different views with state - React Native Tutorial

From the course: React Native Essential Training

Start my 1-month free trial

Navigating to different views with state

- [Instructor] I've made my styles. Here's how my list of deals looks like right now. So I've just added some margins around every deal and make it into a box, made the title of every deal a little bit bigger and bolder and align the cost and the price under the title in one row. You can check the GitHub repository for this movie to see the list of styles that I've used to do all that. Let's do the important part now and the challenging part. When we tap on a deal, we want to go to a different view that displays more details about every deal. This means we want to define a press event on very deal. And that's going to be for the whole deal. So if I press anywhere inside this box of the deal, it takes me to that deal detail view. So I'm going to start the deal detail view by duplicating this DealItem component. So duplicate DealItem as DealDetail. And the DealDetail will keep it exactly as is at first. We'll just…

Contents