Skip to content

A simple React Native example app on top of GitHub's new GraphQL API

Notifications You must be signed in to change notification settings

brunolemos/GitHub-GraphQL-API-Example

Repository files navigation

IssueReader

A small app to demonstrate how to load and paginate some issues from a repo, and their comments, using GitHub's GraphQL API, with Apollo Client.

Running

  1. Copy config.default.js into config.js and add your username and password (please send a PR to add better login!)
  2. npm install
  3. react-native run-ios

Features

  1. Sending login token to GitHub API
  2. Navigating between two views and loading different queries
  3. Infinite scroll pagination

Screenshot

Here's the issues page and the comments for one of the issues:

Contributing

Help us make the app better! Some ideas:

  1. Add real login, ideally with OAuth
  2. Add markdown rendering for comments
  3. Add a mutation to add reactions to comments, or post a new comment

About

A simple React Native example app on top of GitHub's new GraphQL API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published