https://github.com/software-mansion-labs/pokedex
📕 Pokédex 📕 in React Native with use of GraphQL 📝 DIY workshop 🛠
https://github.com/software-mansion-labs/pokedex
expo graphql graphql-client react react-native react-navigation reactjs relay relay-modern
Last synced: 2 months ago
JSON representation
📕 Pokédex 📕 in React Native with use of GraphQL 📝 DIY workshop 🛠
- Host: GitHub
- URL: https://github.com/software-mansion-labs/pokedex
- Owner: software-mansion-labs
- Created: 2018-04-20T10:57:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-12T11:59:25.000Z (about 7 years ago)
- Last Synced: 2025-02-03T12:48:31.430Z (4 months ago)
- Topics: expo, graphql, graphql-client, react, react-native, react-navigation, reactjs, relay, relay-modern
- Language: JavaScript
- Homepage:
- Size: 396 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pokédex
## Gotta query'em all
## Instructions
1. Install Relay. ([Installation and Setup / Relay docs](https://facebook.github.io/relay/docs/en/installation-and-setup.html#installation))
```sh
yarn add react-relay
yarn add --dev babel-plugin-relay graphql relay-compiler
```
2. Add `relay` Babel plugin to `plugins` in `.babelrc`. ([Set up `babel-plugin-relay`](https://facebook.github.io/relay/docs/en/installation-and-setup.html#set-up-babel-plugin-relay))
```json
{
"plugins": ["relay"]
}
```
3. Add `relay` and `relay-watcher` scripts to `package.json`.
```json
"scripts": {
"relay": "relay-compiler --src ./ --schema ./schema.json",
"relay-watch": "relay-compiler --src ./ --schema ./schema.json --watch"
},
```
4. Follow the steps!