Skip to content

Instantly share code, notes, and snippets.

View alejandropaciotti's full-sized avatar

Alejandro Paciotti Iacchelli alejandropaciotti

View GitHub Profile
class HttpClient {
constructor(options = {}) {
this._baseURL = options.baseURL || "";
}
async _fetchJSON(endpoint, options = {}) {
const res = await fetch(this._baseURL + endpoint, {
...options,
});
@alejandropaciotti
alejandropaciotti / Test react-native
Created January 25, 2019 12:15
Fixed a = in line 73
// @flow
import * as React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { NavigationScreenProps, NavigationEventSubscription } from 'react-navigation';
type Props = {
onNewTotal: (total: number) => void,
};
type State = {