Skip to content
This repository was archived by the owner on Sep 16, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ aws-exports.js
android/.gradle/
android/app/build/
android/build/
ios/build/
ios/build/
13 changes: 8 additions & 5 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import React from 'react';
import { StyleSheet, Text, View, Button, Platform } from 'react-native';
import { graphql, ApolloProvider, compose } from 'react-apollo';
import { StackNavigator } from 'react-navigation';

import AWSAppSyncClient from "aws-appsync";
import { Rehydrated } from 'aws-appsync-react';
import { AUTH_TYPE } from "aws-appsync/lib/link/auth-link";
import { graphql, ApolloProvider, compose } from 'react-apollo';
import * as AWS from 'aws-sdk';

import awsconfig from './aws-exports';
import { StackNavigator } from 'react-navigation';
import AllEvents from './Components/AllEvents'
import AddEvent from "./Components/AddEvent";
import ListEvents from './queries/ListEvents';
import CreateEvent from './queries/CreateEvent';
import DeleteEvent from './queries/DeleteEvent';

import ListEvents from "./queries/ListEvents";
import DeleteEvent from "./mutations/DeleteEvent";
import CreateEvent from "./mutations/CreateEvent";

console.disableYellowBox = true;

Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,18 @@ npm run ios #run-android
### ./Components/AllEvents.js

- View to display all the events from `./queries/ListEvents.js` with a `ScrollView`
- Allows you to delete individual events with a swipe. This will use `./queries/DeleteEvent.js`
- Allows you to delete individual events with a swipe. This will use `./mutations/DeleteEvent.js`

### ./Components/AddEvent.js

- View to create a new event using `./queries/CreateEvent.js`
- View to create a new event using `./mutations/CreateEvent.js`

### ./queries Directory

- Contains GraphQL queries and mutations for interacting with AWS AppSync.
- Contains two optional queries (`CommentOnEvent.js` and `GetEvent.js`) for you to enhance the sample.
- Contains GraphQL queries for interacting with AWS AppSync.
- Contains an optional query (`GetEvent.js`) for you to enhance the sample.

### ./mutations Directory

- Contains GraphQL mutations for interacting with AWS AppSync.
- Contains an optional mutation (`CommentOnEvent.js`) for you to enhance the sample.
5 changes: 3 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"expo": {
"sdkVersion": "23.0.0"
"sdkVersion": "26.0.0",
"appKey": "awsappsyncevents"
},
"name": "awsappsyncevents",
"displayName": "Events"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading