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
var workdays = { | |
sunday: false, | |
monday: true, | |
tuesday: true, | |
wednesday: true, | |
thursday: true, | |
friday: true, | |
saturday: false | |
} |
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 GetAllTripsQuery = gql` | |
query GetAllTrips($tripargs: TripWhereArgs) { | |
viewer { | |
id | |
user { | |
id | |
domicile | |
abodes | |
trips(where: $tripargs, orderBy: { field: start, direction: DESC }) { | |
pageInfo { |
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 { | |
ActivityIndicator, | |
View, | |
Text, | |
Alert | |
} from 'react-native' | |
import { Permissions, Location, Notifications, Constants } from 'expo' | |
import { graphql, gql, compose } from 'react-apollo' | |
import update from 'immutability-helper' |
NewerOlder