In this chapter, we will learn how to send and receive data in the React Native application. Firstly, we will make our application more dynamic and dependent on the backend servers. You will learn about the Thunk pattern, which fits into Flux really neatly. Then, we will dive into a more advanced library, redux-saga, which is based on an effect pattern. Both of the solutions will enable our application to seamlessly exchange data with the server. I will also give you a little introduction to more advanced communication patterns, such as HATEOAS and GraphQL. Although those two patterns are rarely crucial for a React Native developer, you will find it much easier to understand if, one day, those patterns become popular within the React Native world too.
In this chapter, you will learn how to do the following:
- Create a fake API
- Fetch data from the backend...