From the course: React Native Essential Training

Unlock the full course today

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

Using FlatList with API data

Using FlatList with API data - React Native Tutorial

From the course: React Native Essential Training

Start my 1-month free trial

Using FlatList with API data

- [Instructor] When we started this project, I forgot to add ESLint. So I just did that off-camera and I'm going to go ahead and fix the ESLint problems that we have. So we're not using previous state in here. so I can actually simplify this since we're not using the previous state to just that. Looking good. And deal list, we're not using style sheet, but we will. So I'm just going to keep it. I'll create a styles object here from stylesheet.create. And in here, I'll introduce a list property. So this is the main list. I'll just give it a background color for now. Very light gray, just to make sure things are working and I'll give this list to the view. So styles.list, make sure this is working. Perfect. So this is our view right here. So we want to definitely make this view take the full screen. So let's do flex one and maybe we'll give it a width of 100%. And to make this text not overlap with the controls…

Contents