From the course: Learning React Native

Unlock the full course today

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

Fetching data

Fetching data

From the course: Learning React Native

Start my 1-month free trial

Fetching data

- [Instructor] Whenever you're building React Native applications you're going to need to be able to get information from the internet and send information to it. To demonstrate this we're going to build a new application that gets some information from the internet. And I'm going to build this application using the Expo Snack tool. So remember Expo Snack is a pretty powerful InBrowser IDE that we can use to get started building React Native applications. So whenever you create a new Snack, Expo gives you some default code. You might notice some fun things in this code. Like you can get constants from Expo Constants and then we can use that value within our CSS to get the exact status bar height for each device. So I'm going to come in here to the center of this code and I'm going to delete our default app component. We're going to go ahead and create our own component and our component is going to be a function. So as you…

Contents