6.4.0 • Published 1 year ago

@types/react-router-native v6.4.0

Weekly downloads
9,119
License
MIT
Repository
-
Last release
1 year ago

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

Credits

These definitions were written by Eduard Zintz, and Fernando Helwanger.

6.4.0

1 year ago

5.1.3

2 years ago

5.1.2

3 years ago

5.1.1

3 years ago

5.1.0

5 years ago

4.2.4

5 years ago

4.2.3

6 years ago

4.2.2

6 years ago

4.2.1

6 years ago

4.2.0

6 years ago

4.0.3

6 years ago

4.0.2

6 years ago

4.0.1

7 years ago

4.0.0

7 years ago