Sign in Go Pro

Build a React Native Application

Consuming a Node.js HTTP API in React Native

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson

Up next



Most mobile apps will require some type of network calls. We use fetch to make an HTTP call to a simple REST API server.

The server can get and update tasks, and uses JSON to communicate data back and forth with React Native.

Server Code

ToDo API server here

Summary of Content:

  • Download and run the simple HTTP server
  • Use fetch to call the server and get a list of todo items
  • Modify the existing components to account for the new data structure
  • Mark tasks as completed with a PUT request
  • Make new tasks with a POST request




When using the Android emulator, as you mentioned, you replace localhost, I think you replace it with: (I found this on StackOverflow, and also noticed, this is IP the reloader is reporting when I reinstall the app). Hope this helps some Android folks.

You need to go PRO to post comments.

Lessons in Build a React Native Application