Skip to content

Instantly share code, notes, and snippets.

View brmk's full-sized avatar
👽
working

Ihor Barmak brmk

👽
working
View GitHub Profile

Test assignment - React Native Expo Application with GraphQL API

Overview

You are required to create a React Native Expo application that implements a simple authentication mechanism. The application should communicate with the server using GraphQL API.

Our server is available on API URL: https://uplab-test-auth-backend-3211cfc38d0c.herokuapp.com/graphql

You can use a GraphQL sandbox to write queries and test your requests: https://studio.apollographql.com/sandbox/explorer?endpoint=https://uplab-test-auth-backend-3211cfc38d0c.herokuapp.com/graphql

@brmk
brmk / AlertProvider.js
Created June 5, 2020 08:15
Alert provider for imperative usage
import React, { useContext } from 'react';
// AlertComponent is your custom component to render
import AlertComponent from './AlertComponent';
const AlertContext = React.createContext({
isVisible: false,
setIsVisible: () => {},
setProps: () => {},
props: {},
});
@brmk
brmk / loading-phrases.js
Created November 18, 2018 13:41 — forked from jfolds/loading-phrases.js
loading-messages
this.phrases = [
'Please wait: pay no attention to the man behind the curtain',
'Please wait: at least you\'re not on hold',
'Please wait: the server is powered by a lemon and two electrodes',
'Please wait: we\'re testing your patience',
'Please wait: while the satellite moves into position',
'My other loading screen is a Ferrari',
'Please wait: as if you had any other choice',
'Adding Hidden Agendas',
'Adjusting Bell Curves',