Skip to content

Instantly share code, notes, and snippets.

View yotavm's full-sized avatar

iamyotav yotavm

  • 500tech
  • new york
View GitHub Profile
const { render } = require("react-dom");
const app = () => {
<Router>
<Route path='/IDR' compnent={IDRWizard}/>
<Route path='/PSLF' compnent={IDRWizard}/>
option
<Route path='/payment/{pathName}' compnent={Paywall} />
@yotavm
yotavm / test
Created May 10, 2020 05:14
edge check
const handleSideEffects = sideEffects => sideEffect => next => action => {
try {
console.log(sideEffects)
sideEffect()
next(action);
} catch (e) {
console.log('error yotav', e);
}
@yotavm
yotavm / Quovo.js
Last active August 15, 2018 18:50
Quovo class
import request from 'superagent';
const BASE_URL = 'https://api.quovo.com/v2';
const API_KEY = parameters.QUOVO_API_KEY;
const WEBHOOK_SECRET = parameters.QUOVO_WEBHOOK_SECRET;
const sendPRequest = async (method, path, payload) => {
try {
const newRequest = await request[method](`${BASE_URL}/${path}`)
.type('json')
@yotavm
yotavm / demo
Created October 26, 2017 10:52
import React, { PureComponent } from 'react';
import { connect } from 'react-redux';
import { Animated, View, StyleSheet,Text,InteractionManager,ActivityIndicator} from 'react-native';
import { TabViewAnimated, TabBar } from 'react-native-tab-view';
import BasicListView from './BasicListView';
import AllPublicChat from '../components/allPublicChat';
import _ from 'underscore';
import type { NavigationState } from 'react-native-tab-view/types';