Right now, any refresh or exiting of the application will wipe our list of tasks clean. That doesn't make for a very useful app, so we're now going to modify our actions to store and retrieve our list of tasks from AsyncStorage.
Let's create a utils folder within app, and then create a file titled storageMethods.js within utils:
This file will contain two functions:
- getAsyncStorage: This gets the listOfTasks item in AsyncStorage and returns it
- saveAsyncStorage: This accepts an array and saves it into AsyncStorage under the listOfTasks key
If you worked on the previous projects in this ...