You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@types/react-router-native

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-router-native - npm Package Compare versions

Comparing version

to
5.1.1

14

react-router-native/index.d.ts

@@ -31,3 +31,3 @@ // Type definitions for React Router Native 5.1

export interface BackButtonProps {
children?: React.ReactNode;
children?: React.ReactNode | undefined;
}

@@ -41,4 +41,4 @@

export interface LinkProps {
component?: React.ComponentType<any>;
replace?: boolean;
component?: React.ComponentType<any> | undefined;
replace?: boolean | undefined;
style?: any;

@@ -52,8 +52,8 @@ to: H.LocationDescriptor;

export interface NativeRouterProps {
getUserConfirmation?: Function;
keyLength?: number;
initialEntries?: string[];
initialIndex?: number;
getUserConfirmation?: Function | undefined;
keyLength?: number | undefined;
initialEntries?: string[] | undefined;
initialIndex?: number | undefined;
}
export class NativeRouter extends React.Component<NativeRouterProps> {}
{
"name": "@types/react-router-native",
"version": "5.1.0",
"version": "5.1.1",
"description": "TypeScript definitions for React Router Native",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-native",
"license": "MIT",

@@ -19,3 +20,3 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {

@@ -32,4 +33,4 @@ "type": "git",

},
"typesPublisherContentHash": "a7af34f74384068069b0098e4622515919b3e3b0261ca223b083305437b0f2aa",
"typeScriptVersion": "2.8"
"typesPublisherContentHash": "7d95b227d9ccc66f3ba1e1649ab83120c15c2f965a2a472b4d8c8abb05d679af",
"typeScriptVersion": "3.6"
}

@@ -8,10 +8,70 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-native
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-native.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-router-native/index.d.ts)
````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
Additional Details
* Last updated: Wed, 25 Sep 2019 11:33:05 GMT
* Dependencies: @types/react-router, @types/react, @types/history
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 {
getUserConfirmation?: Function | undefined;
keyLength?: number | undefined;
initialEntries?: string[] | undefined;
initialIndex?: number | undefined;
}
export class NativeRouter extends React.Component<NativeRouterProps> {}
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 22:41:29 GMT
* Dependencies: [@types/react-router](https://npmjs.com/package/@types/react-router), [@types/react](https://npmjs.com/package/@types/react), [@types/history](https://npmjs.com/package/@types/history)
* Global values: none
# Credits
These definitions were written by Eduard Zintz <https://github.com/ezintz>, and Fernando Helwanger <https://github.com/fhelwanger>.
These definitions were written by [Eduard Zintz](https://github.com/ezintz), and [Fernando Helwanger](https://github.com/fhelwanger).

Sorry, the diff of this file is not supported yet