Using Apollo in React Native

If you look at the application, you will see there are two tabs; one is showing the Conversations screen and the other is showing the Settings screen. The Conversations screen is now displaying the text Loading..., where the conversations that were returned from the GraphQL server should be shown. The components to display the conversations have already been created and can be found in the client/Components/Conversation directory, while the logic to request the conversations still needs to be created.

To add Apollo, follow these steps:

  1. The first step is to import the Query component from react-apollo into the client/Screens/Conversations.js file, which you'll use to send a document to the GraphQL server. This ...

Get React Projects 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.