Skip to content

Instantly share code, notes, and snippets.

import { get } from "axios";
import { authCredentials } from "./auth-service";
const API_HOST = "https://fake-api.com";
const overdraftDetails = async username => {
const headerInfo = { correlationId: "458639" };
return get(`${API_HOST}/users/${username}`, {
...authCredentials(),
module.exports = {
extends: ['airbnb', 'prettier', 'prettier/react'],
parser: 'babel-eslint',
env: {
jest: true,
jasmine: true
},
plugins: ['detox', 'prettier', 'react-hooks'],
rules: {
import React from "react";
import { TouchableOpacity } from "react-native";
import styles from "./styles";
import MidwayText from "./midway-text";
import { primary } from "./types/button-types";
const MidwayButton = props => {
const { type, style, children } = props;
const { textStyle, ...buttonStyle } = type || primary;