TodoMVC and Relay
I had originally planned to extend the Neckbeard News app that we worked on earlier, in this chapter. Instead, I decided that the TodoMVC example for Relay (https://github.com/relayjs/relay-examples) is a robust yet concise example that I would have trouble beating.
So, the plan is this: I'm going to walk you through an example React Native implementation of a Todo app. The key is that it'll use the same GraphQL backend as the web UI. I think this is an absolute win for React developers that want to build both web and native versions of their apps; they can literally share the same schema!
I've included the web version of the TodoMVC app in the code that ships with this book, but I won't dwell on the details of how it works. If you've worked on web development in the past 5 years, you've probably come across a sample Todo app. Here's what the web version looks like:
The functionality is pretty self explanatory, so even if you haven&apos...