O'Reilly logo

React Native By Example by Richard Kho

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating CurrentMonthExpenses and ExpenseRow

Up to this point, we have been rendering the CurrentMonthExpenses and ExpenseRow components without a category as one did not exist previously. Let's update them with the following goals in mind:

  • CurrentMonthExpenses should access each item's category and pass it to ExpenseRow
  • ExpenseRow should render the appropriate category's assigned icon in the row of expenses so that our users can quickly visualize what it is that they spent part of their budget on
  • We should use the resetAsyncStorage method created in StorageMethods to clear any current list of expenses before modifying ExpenseRow so that the previous expenses without a category assigned will not cause any issues

Once you have updated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required