Skip to content

Instantly share code, notes, and snippets.

View osifo's full-sized avatar

Anosike Osifo osifo

View GitHub Profile
@osifo
osifo / TripDatePicker.jsx
Last active October 28, 2020 10:02
Using and Customizing react-dates DateRangePickerController
import React, { Component } from "react";
import "react-dates/initialize";
import { DayPickerRangeController } from "react-dates";
import CustomizableCalendarDay from "react-dates/lib/components/CustomizableCalendarDay.js";
import "react-dates/lib/css/_datepicker.css";
import "./styles";
const START_DATE = "startDate";
const END_DATE = "endDate";
@osifo
osifo / http_helper.js
Last active April 25, 2019 16:54
React Native Sample of API <-> ActionCreator Data Flow
// @flow
import { AsyncStorage } from "react-native";
// require("es6-promise").polyfill();
// require("isomorphic-fetch");
const getAuthToken = async token => AsyncStorage.getItem("auth_token");
const getDefaultHttpParams = async () => {