Skip to content

Instantly share code, notes, and snippets.

View marcmo's full-sized avatar

Oliver Mueller marcmo

View GitHub Profile
@verticalgrain
verticalgrain / app.js
Last active April 26, 2022 15:37
React Router V4 Redirect after form submission
import React, { Component } from 'react'
import { Redirect } from 'react-router'
export default class ContactForm extends Component {
constructor () {
super();
this.state = {
fireRedirect: false
}
}
@SergeyKorochansky
SergeyKorochansky / react-native-navigation.ts
Created August 16, 2016 15:49
react-native-navigation.d.ts
declare module 'react-native-navigation' {
export interface NavigatorStyle {
navBarTextColor?: string;
navBarBackgroundColor?: string;
navBarButtonColor?: string;
navBarHidden?: boolean;
navBarHideOnScroll?: boolean;
navBarTranslucent?: boolean;
navBarNoBorder?: boolean;
drawUnderNavBar?: boolean;
@CarsonF
CarsonF / example.tsx
Last active November 2, 2017 05:44
Redux Form V6 typescript definition
// This doesn't have everything but it gives an idea of how the interfaces and decorator should be used.
interface LoginFormData {
username?: string;
password?: string;
}
interface LoginFormProps extends FormProps<LoginFormData, AppState> {
dispatch?: Dispatch<AppState>,
}