From c69f7de87e14887ea2fb903235737c82d64b8f97 Mon Sep 17 00:00:00 2001 From: Almir Kadric Date: Wed, 21 Feb 2018 02:31:55 +0900 Subject: [PATCH] added missing properties to NativeRouter and fixed Link component type --- types/react-router-native/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/react-router-native/index.d.ts b/types/react-router-native/index.d.ts index 4a14dce8dc..7adbdcf4f3 100644 --- a/types/react-router-native/index.d.ts +++ b/types/react-router-native/index.d.ts @@ -31,7 +31,7 @@ export class AndroidBackButton extends React.Component { export class DeepLinking extends React.Component {} export interface LinkProps { - component?: React.Component; + component?: React.Component | React.ComponentClass; replace?: boolean; style?: any; to: H.LocationDescriptor; @@ -40,6 +40,8 @@ export interface LinkProps { export class Link extends React.Component {} export interface NativeRouterProps { + initialEntries?: string[]; + initialIndex?: number; getUserConfirmation?: Function; keyLength?: number; }