Skip to content

Instantly share code, notes, and snippets.

Kurtis Kemple kkemple

Block or report user

Report or block kkemple

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View TranslationScreen.js
import React, { useState, useEffect } from "react";
import {
TouchableOpacity,
View,
KeyboardAvoidingView,
Modal,
ScrollView,
StyleSheet,
StatusBar
} from "react-native";
View event-connection-hook.js
import { useState, useEffect } from "react";
import { Auth, API, graphqlOperation } from "aws-amplify";
import parse from "date-fns/parse";
import format from "date-fns/format";
import formatDistance from "date-fns/formatDistance";
import { getEvent } from "../graphql/queries";
import {
onUpdateEvent,
View EventScreen.js
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";
View MainActivity.java
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;
View amplify-multienv-build-settings.yaml
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'
View amplify-multienv-todos.js
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";
View amplify-multienv-auth.js
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);
View amplify-gatsby-node.js
exports.onCreatePage = async ({ page, actions }) => {
const { createPage } = actions
if (page.path.match(/^\/dashboard/)) {
page.matchPath = "/dashboard/*"
createPage(page)
}
}
View gatsby-amplify-dashboard-new.js
import React from 'react'
import Layout from '../components/Layout'
const Dashboard = props => (
<Layout {...props} title="Gatsby Starter Blog">
<h1>Liked Posts</h1>
</Layout>
)
View gatsby-amplify-browser.js
import Amplify, { Auth } from 'aws-amplify'
import awsConfig from './src/aws-exports'
Amplify.configure(awsConfig)
You can’t perform that action at this time.