This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { memo, useState, useEffect } from "react"; | |
import { SafeAreaView, View, TouchableOpacity } from "react-native"; | |
import { Agenda } from "react-native-calendars"; | |
import styled from "@emotion/native"; | |
import { FontAwesome5 } from "@expo/vector-icons"; | |
import { Auth, API, graphqlOperation } from "aws-amplify"; | |
import eachDayOfInterval from "date-fns/eachDayOfInterval"; | |
import parse from "date-fns/parse"; | |
import startOfMonth from "date-fns/startOfMonth"; | |
import startOfDay from "date-fns/startOfDay"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.nycworkshopexample; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.widget.TextView; | |
import com.amazonaws.amplify.generated.graphql.CreateTodoMutation; | |
import com.amazonaws.amplify.generated.graphql.ListTodosQuery; | |
import com.amazonaws.amplify.generated.graphql.OnCreateTodoSubscription; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 0.1 | |
backend: | |
phases: | |
build: | |
commands: | |
- '# Get Amplify CLI Cloud-Formation stack info from environment cache' | |
- export STACKINFO="$(envCache --get stackInfo)" | |
- '# Execute Amplify CLI with the helper script' | |
- amplifyPush --environment $BUILD_ENV | |
- '# Store Amplify CLI Cloud-Formation stack info in environment cache' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from "react"; | |
import Amplify, { graphqlOperation } from "aws-amplify"; | |
import { withAuthenticator, Connect } from "aws-amplify-react"; | |
import "./App.css"; | |
import awsConfig from "./aws-exports"; | |
import * as mutations from "./graphql/mutations"; | |
import * as queries from "./graphql/queries"; | |
import * as subscriptions from "./graphql/subscriptions"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
import Amplify from 'aws-amplify'; | |
import awsConfig from './aws-exports'; | |
import { withAuthenticator } from 'aws-amplify-react'; | |
Amplify.configure(awsConfig); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.onCreatePage = async ({ page, actions }) => { | |
const { createPage } = actions | |
if (page.path.match(/^\/dashboard/)) { | |
page.matchPath = "/dashboard/*" | |
createPage(page) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import Layout from '../components/Layout' | |
const Dashboard = props => ( | |
<Layout {...props} title="Gatsby Starter Blog"> | |
<h1>Liked Posts</h1> | |
</Layout> | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Amplify, { Auth } from 'aws-amplify' | |
import awsConfig from './src/aws-exports' | |
Amplify.configure(awsConfig) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { withAuthenticator } from 'aws-amplify-react' | |
import Layout from '../components/Layout' | |
const Dashboard = props => ( | |
<Layout {...props} title="Gatsby Starter Blog" isDashboard> | |
<h1>Liked Posts</h1> | |
</Layout> | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
return ( | |
<div | |
style={{ | |
marginLeft: `auto`, | |
marginRight: `auto`, | |
maxWidth: rhythm(24), | |
padding: `${rhythm(1.5)} ${rhythm(3 / 4)}`, | |
}} | |
> |