All right.
Hopefully you had some success on this exercise.
So in this video we're going to go over a very quick solution.
I'm going to flip back over to my code editor.
The first thing we want to do is make sure that our LIST scrolls vertically again to get it to scroll
vertically.
All we have to do is remove that horizontal prop right there now that our LIST is scrolling horizontally.
We really don't need this shows horizontal scroll indicator either either anymore.
So I can delete that as well.
If I now save this I should see my list scrolling vertically once again.
Yep looks good.
All right.
So now part two we need to go through an ad in an age property to each of our different friend objects.
So I'm going to find each of these different objects and I'll add an age and I'll do 20 and I'll just
copy paste that on down once again so 20 20 20 and I'm going to change the age for each one very quickly.
Let's go.
21 22 23 24 and so on.
Okay.
That looks good.
So now that our friend objects have an age property we can reference that inside of our render item
function right here.
At present we are only accessing the Name property up of each friend.
So if we want to make sure we also print out the age we can just add in an additional reference inside
this text element to item dot age.
So I'll put inside of here right after item dot name a dash like so.
Because remember that's why I showed on this mockup over here and then I'll write out in plain text
age and then to put a javascript variable inside of your of item dot age we'll make sure we put that
inside of a set of curly braces.
So item dot age and I'll zoom out for just a second so you can easily see that whole line OK.
So that should be it.
It's all safe.
This looks like my code for matter has kicked in and kind of reformatted that code.
Total equivalent to what we had before.
It's just kind of condense down so it doesn't span such a very long line.
Now I can check out my application and I'll see you up.
I've got friend one to the age of 20.
Age 21 and so on.
I should have something very equivalent on Android as well.
It looks like I do.
All right.
So nice little exercise.
Let's take a pause right here and now we're going to move on to our next subject in the next video.