https://github.com/calitb/sample-graphql-client
Sample of ReactNative app fetching graphql
https://github.com/calitb/sample-graphql-client
graphql-client reactnative
Last synced: 7 months ago
JSON representation
Sample of ReactNative app fetching graphql
- Host: GitHub
- URL: https://github.com/calitb/sample-graphql-client
- Owner: calitb
- Created: 2020-01-18T21:33:49.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:18:45.000Z (about 3 years ago)
- Last Synced: 2025-02-08T08:16:34.046Z (11 months ago)
- Topics: graphql-client, reactnative
- Language: TypeScript
- Homepage:
- Size: 2.55 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Client

### 1. Start the server
To start first clone and run the server
```
git clone git@github.com:calitb/GraphQL-Apollo-Server.git
cd GraphQL-Apollo-Server/
npm i
npm start
```
### 2. Start the application
```
npm i
npm run pods
npm run ios
```
### 3. Select the demo to run:
There are 3 demos to run, you can switch between them by opening `./components/routes.tsx` and edit the last line.
1. Demo1: Application showing mockup data in a ScrollView
2. Demo2: Application showing mockup data using a FlatList ( for memory improvements )
3. Demo3: Application using ApolloClient to fetch data from a server.
You can open `./graphql/apollo` and set the `GRAPHQL_URL` value to point to your own server (See `Start the server` above).