/react-native-apollo-instagram-example

:camera: Instagram clone built with React Native & Apollo

Primary LanguageJavaScript

react-native-apollo-instagram-example

Getting Started

After downloading this example please follow these steps.

1. Create an account

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!
}

2. Configure app data endpoint

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__'}),
})

3. Run the example

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

Help & Community Slack Status

Join our Slack community if you run into issues or have questions. We love talking to you!