Skip to content

AhmedAbuelenin/countries-graphql-react-native-example

Repository files navigation

Intro

Countries App is an example of how to integrate GraphQL queries into a React Native app using a free API provided by https://countries.trevorblades.com/.

Installation

$ git clone https://github.com/AhmedAbuelenin/countries-graphql-example.git
$ cd countries-graphql-example
$ yarn start
$ yarn install
$ react-native run-android
   or
$ react-native run-ios

API Documents

You can check all available queries for this api here https://github.com/trevorblades/countries

Attribution

This example is originally provided by https://github.com/muhsin-k/country-directory-app/tree/a1fa6ba9eb0c8ba390150d5e31d09079bfc80811. Thanks to muhsin-k

Modifications

This is the modification I did for the original source to be more easier to follow.

  • Changed javascript to typescript.
  • Modularize code.
  • Reusable components.
  • Fixed build issues.
  • Used latest version of RN 0.72.4 and graphql dependencies.
  • Added more queries

License

MIT