From aee31fb6add5fbf2f221dee71bb37d01776f53b3 Mon Sep 17 00:00:00 2001 From: Jeroen Vervaeke Date: Sat, 17 Nov 2018 00:45:18 +0100 Subject: [PATCH] Ran 'npm run lint package-name' --- types/react-navigation/index.d.ts | 55 +++++++++++++++---------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 92f3daa0e6..593500e585 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -880,35 +880,34 @@ export function createSwitchNavigator( export const DrawerItems: React.ComponentType; export interface DrawerItemsProps { - navigation: NavigationScreenProp, - items: Array, - activeItemKey?: string, - activeTintColor?: string, - activeBackgroundColor?: string, - inactiveTintColor?: string, - inactiveBackgroundColor?: string, - getLabel: (scene: DrawerScene) => React.ReactNode | string, - renderIcon: (scene: DrawerScene) => React.ReactNode, - onItemPress: (info: DrawerItem) => void, - itemsContainerForceInset?: Object, - itemsContainerStyle?: StyleProp, - itemStyle?: StyleProp, - labelStyle?: StyleProp, - activeLabelStyle?: StyleProp, - inactiveLabelStyle?: StyleProp, - iconContainerStyle?: StyleProp, - drawerPosition: 'left' | 'right', + navigation: NavigationScreenProp; + items: NavigationRoute[]; + activeItemKey?: string; + activeTintColor?: string; + activeBackgroundColor?: string; + inactiveTintColor?: string; + inactiveBackgroundColor?: string; + getLabel: (scene: DrawerScene) => React.ReactNode | string; + renderIcon: (scene: DrawerScene) => React.ReactNode; + onItemPress: (info: DrawerItem) => void; + itemsContainerStyle?: StyleProp; + itemStyle?: StyleProp; + labelStyle?: StyleProp; + activeLabelStyle?: StyleProp; + inactiveLabelStyle?: StyleProp; + iconContainerStyle?: StyleProp; + drawerPosition: 'left' | 'right'; +} +export interface DrawerScene { + route: NavigationRoute; + focused: boolean; + index: number; + tintColor?: string; +} +export interface DrawerItem { + route: NavigationRoute; + focused: boolean; } -declare type DrawerScene = { - route: NavigationRoute, - focused: boolean, - index: number, - tintColor?: string, -}; -declare type DrawerItem = { - route: NavigationRoute, - focused: boolean, -}; /** * Drawer Navigator