From the course: Create a CRM Mobile Application with React Native
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Finalize detail view - React Native Tutorial
From the course: Create a CRM Mobile Application with React Native
Finalize detail view
- [Instructor] Okay, so let's continue working on the detail view. We still have a lot of code to write, so let's go ahead and get started. The next thing that we need to do is a view. So let's go ahead and create a view. And this view is going to have a style of styles dot edit, delete area. And inside of that view, basically this area is going to be where we can delete or update specific items. So what we need at this point is to use the touchable opacity button, and it's going to have the styles apply to it. Sections. And let's close that out. But inside of the touchable opacity, there are a few things that we need to do, and we're going to need to do an on press. And that on press is going to create the update test. This is where we're going to leverage the function that we just created above. So let's go ahead and do this, and we're going to return this dot update test. So basically when we touch that specific area, which is here, whatever is inside of this view is going to be…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.