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/.
$ 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
You can check all available queries for this api here https://github.com/trevorblades/countries
This example is originally provided by https://github.com/muhsin-k/country-directory-app/tree/a1fa6ba9eb0c8ba390150d5e31d09079bfc80811. Thanks to muhsin-k
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
MIT