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, { useState, useRef } from 'react'; | |
import { StyleSheet, View, KeyboardAvoidingView } from 'react-native'; | |
import { Image, ThemeProvider, Input, Button } from 'react-native-elements'; | |
import validator from 'validator' | |
import axios from 'axios' | |
import constants from './constants' | |
const { colors } = constants |
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
const express = require('express'); | |
const helmet = require('helmet'); | |
const axios = require('axios'); | |
const bodyParser = require('body-parser') | |
const client = axios.create({ | |
baseURL: 'https://api.prosperworks.com/developer_api', | |
headers: { | |
'X-PW-AccessToken': process.env.COPPER_CRM_API_KEY, | |
'X-PW-Application': 'developer_api', |
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, { PureComponent } from 'react'; | |
import { autobind } from 'core-decorators'; | |
export default class Button extends PureComponent { | |
@autobind | |
_handleOnClick (e) { | |
e.preventDefault(); | |
console.log('I was clicked!'); | |
} | |
render () { |
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 { Permissions, Notifications } from 'expo'; | |
import { Platform } from 'react-native'; | |
import client from '../state/apollo'; | |
import mutation from '../graphql/mutations/userAddPushToken'; | |
import Observable from './observable'; | |
export const register = async () => { |
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
{ | |
"redis": { | |
"host": "localhost", | |
"port": 6379, | |
"prefix": "solaris-" | |
}, | |
"port": 3000 | |
} |
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
myUser { | |
# My user's ID | |
id | |
name | |
createdAt | |
updatedAt | |
Posts { | |
# Posts that my user has created... | |
id |
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, { PropTypes } from 'react'; | |
import classNames from 'classnames'; | |
import { autobind } from 'core-decorators'; | |
import withStyles from 'isomorph-style-loader/lib/withStyles'; | |
import PureComponent from '../../components/common/pure'; | |
import style from './radio.css'; | |
@withStyles(style) |
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 { AlreadyAuthenticatedError, NotAuthenticatedError, NotAuthorizedError } from '../errors/functional'; | |
import createResolver from '../lib/createResolver'; | |
export const baseResolver = createResolver(); | |
export const isAuthenticatedResolver = baseResolver.createResolver( | |
(root, args, context) => { | |
if (!context.user || !context.user.id) throw new NotAuthenticatedError(); | |
} |
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
type Location implements Resource { | |
# Primary key | |
id: ID! | |
# Google's name for the Location | |
googleName: String! | |
# Google's ID for the Location | |
googleId: ID! | |
# Google's Place ID for the Location | |
googlePlaceId: ID! | |
# Google's Timezone ID for the Location |
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, { PropTypes } from 'react'; | |
import classNames from 'classnames'; | |
import { autobind } from 'core-decorators' | |
import PureComponent from './pure'; | |
@withStyles(style) | |
export default class Input extends PureComponent { | |
static propTypes = { | |
onChange: PropTypes.func.isRequired, |