Skip to Main Content
React Projects
book

React Projects

by Roy Derks
December 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
10h 3m
English
Packt Publishing
Content preview from React Projects

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Projects - Second Edition

React Projects - Second Edition

Roy Derks
Test-Driven React

Test-Driven React

Trevor Burnham

Publisher Resources

ISBN: 9781789954937Supplemental Content