DefinitelyTyped/types/react-router-native/index.d.ts
2018-03-02 10:49:46 +09:00

51 lines
1.2 KiB
TypeScript

// Type definitions for React Router Native 4.0
// Project: https://github.com/ReactTraining/react-router-native
// Definitions by: Eduard Zintz <https://github.com/ezintz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
export {
match,
matchPath,
MemoryRouter,
Prompt,
Redirect,
Route,
RouteComponentProps,
RouteProps,
Router,
RouterChildContext,
StaticRouter,
Switch,
withRouter
} from 'react-router';
import * as React from 'react';
import * as H from 'history';
export interface AndroidBackButtonProps {
children: React.Component[];
}
export class AndroidBackButton extends React.Component<AndroidBackButtonProps> {}
export class DeepLinking extends React.Component {}
export interface LinkProps {
component?: React.Component | React.ComponentClass;
replace?: boolean;
style?: any;
to: H.LocationDescriptor;
[propName: string]: any;
}
export class Link extends React.Component<LinkProps> {}
export interface NativeRouterProps {
initialEntries?: string[];
initialIndex?: number;
getUserConfirmation?: Function;
keyLength?: number;
}
export class NativeRouter extends React.Component<NativeRouterProps> {}