From the course: Create a CRM Mobile Application with React Native (2019)

Unlock the full course today

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

Add person redux actions

Add person redux actions - React Native Tutorial

From the course: Create a CRM Mobile Application with React Native (2019)

Start my 1-month free trial

Add person redux actions

- [Instructor] All right, so let's keep working on our little form here, and how to add it with Redox. So let's go to our actions. So click on the Actions folder. Click on the Index.js, and now we're going to add a few things here in order to be able to add new people inside of our form. So let's go ahead and do that. So the first thing we're going to need to do is do the form update. So we created a form update case here. So we need to create the action for that. So let's go ahead and create that. We're going to crate a function formUpdate, and as you remember, if we go back to our add person, we are leveraging it here. If we go back to here, formUpdate. So we're leveraging it inside of this particular form. So whenever we add new items in our form, we're going to update our state with this formUpdate. So we're going to need this action inside of our actions here. So formUpdate, and the function will need to be passed, a prop, and then a value. Which will return as a type, the…

Contents