DefinitelyTyped/types/react-router-native/index.d.ts
Forbes Lindesay 8f8f6c4392 [react] Use HTMLDialogElement for the dialog node (#23053)
* [react] Use HTMLDialogElement for the dialog node

* Actually add the `open` property

* This update requires typescript 2.6

* Update dependents of react to also require typescript 2.6
2018-02-12 12:55:52 +00:00

48 lines
1.1 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;
replace?: boolean;
style?: any;
to: H.LocationDescriptor;
}
export class Link extends React.Component<LinkProps> {}
export interface NativeRouterProps {
getUserConfirmation?: Function;
keyLength?: number;
}
export class NativeRouter extends React.Component<NativeRouterProps> {}