// Type definitions for React Router Native 5.1 // Project: https://github.com/reacttraining/react-router // Definitions by: Eduard Zintz // Fernando Helwanger // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 export { match, matchPath, MemoryRouter, Prompt, Redirect, Route, RouteComponentProps, RouteProps, Router, RouterChildContext, StaticRouter, Switch, withRouter, useHistory, useLocation, useParams, useRouteMatch, } 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 {} export class AndroidBackButton extends React.Component {} export class DeepLinking extends React.Component {} export interface LinkProps { component?: React.ComponentType; replace?: boolean; style?: any; to: H.LocationDescriptor; [propName: string]: any; } export class Link extends React.Component {} export interface NativeRouterProps { getUserConfirmation?: Function; keyLength?: number; initialEntries?: string[]; initialIndex?: number; } export class NativeRouter extends React.Component {}