After downloading this example please follow these steps.
To run this example, please create a graph.cool account and copy your endpoint. This shouldn't take longer than a minute. We promise!
This is how our GraphQL data model looks like:
type Post {
description: String!
imageUrl: String!
}
Open src/root.js
and paste your endpoint to the following line:
const client = new ApolloClient({
networkInterface: createNetworkInterface({ uri: 'https://api.graph.cool/simple/v1/__PROJECT_ID__'}),
})
You're done configuring the example application. Please run the following command. Have fun exploring! 🎉
yarn
react-native run-ios # or ...
react-native run-android
Join our Slack community if you run into issues or have questions. We love talking to you!