mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
// Type definitions for React Router Native 4.2
|
|
// Project: https://github.com/reacttraining/react-router
|
|
// Definitions by: Eduard Zintz <https://github.com/ezintz>
|
|
// Fernando Helwanger <https://github.com/fhelwanger>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
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 BackButtonProps {
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export class BackButton extends React.Component<BackButtonProps> {}
|
|
export class AndroidBackButton extends React.Component<BackButtonProps> {}
|
|
|
|
export class DeepLinking extends React.Component {}
|
|
|
|
export interface LinkProps {
|
|
component?: React.ComponentType<any>;
|
|
replace?: boolean;
|
|
style?: any;
|
|
to: H.LocationDescriptor;
|
|
[propName: string]: any;
|
|
}
|
|
|
|
export class Link extends React.Component<LinkProps> {}
|
|
|
|
export interface NativeRouterProps {
|
|
getUserConfirmation?: Function;
|
|
keyLength?: number;
|
|
initialEntries?: string[];
|
|
initialIndex?: number;
|
|
}
|
|
|
|
export class NativeRouter extends React.Component<NativeRouterProps> {}
|