© Akshat Paul and Abhishek Nalwaya 2019
Akshat Paul and Abhishek NalwayaReact Native for Mobile Developmenthttps://doi.org/10.1007/978-1-4842-4454-8_6

6. Communicating with Servers

Akshat Paul1  and Abhishek Nalwaya2
Gurgaon, Haryana, India
Jaipur, Rajasthan, India

Communication is everyone’s panacea for everything.

—Tom Peters

After learning about the powers of device capabilities with many examples, it’s time to get back to our SmartHouse application. So far, you have been populating your app locally with some dummy data, but no application can survive without communicating with a server. This chapter covers how to interact with network APIs. You will explore the following topics:
  • XMLHttpRequest

  • WebSocket

  • Fetch

  • Getting data from a server ...

Get React Native for Mobile Development: Harness the Power of React Native to Create Stunning iOS and Android Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.