6.4.0 • Published 1 year ago
@types/react-router-native v6.4.0
Installation
npm install --save @types/react-router-native
Summary
This package contains type definitions for React Router Native (https://github.com/reacttraining/react-router).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-native.
index.d.ts
// Type definitions for React Router Native 5.1
// 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,
useHistory,
useLocation,
useParams,
useRouteMatch,
} from 'react-router';
import * as React from 'react';
import * as H from 'history';
export interface BackButtonProps {
children?: React.ReactNode | undefined;
}
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> | undefined;
replace?: boolean | undefined;
style?: any;
to: H.LocationDescriptor;
[propName: string]: any;
}
export class Link extends React.Component<LinkProps> {}
export interface NativeRouterProps {
children?: React.ReactNode;
getUserConfirmation?: Function | undefined;
keyLength?: number | undefined;
initialEntries?: string[] | undefined;
initialIndex?: number | undefined;
}
export class NativeRouter extends React.Component<NativeRouterProps> {}
Additional Details
- Last updated: Tue, 18 Jan 2022 22:01:53 GMT
- Dependencies: @types/react-router, @types/react, @types/history
- Global values: none
Credits
These definitions were written by Eduard Zintz, and Fernando Helwanger.