From 02e0dad97cfa6577fae8d7bed19471e13e8dc367 Mon Sep 17 00:00:00 2001 From: Edmundo Santos Date: Wed, 17 Apr 2019 19:28:25 +0100 Subject: [PATCH] Add missing types for DrawerNavigatorConfig (#5820) --- packages/react-navigation/CHANGELOG.md | 3 ++- packages/react-navigation/typescript/react-navigation.d.ts | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/react-navigation/CHANGELOG.md b/packages/react-navigation/CHANGELOG.md index 0389cbbd..6792216c 100644 --- a/packages/react-navigation/CHANGELOG.md +++ b/packages/react-navigation/CHANGELOG.md @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## Fixes -- Remove `createTabNavigator` from type definitions. +- Remove `createTabNavigator` from type definitions +- Add missing types for `DrawerNavigatorConfig` ## [3.8.1] - [2019-04-12](https://github.com/react-navigation/react-navigation/releases/tag/3.8.1) diff --git a/packages/react-navigation/typescript/react-navigation.d.ts b/packages/react-navigation/typescript/react-navigation.d.ts index ed63974c..4aa71127 100644 --- a/packages/react-navigation/typescript/react-navigation.d.ts +++ b/packages/react-navigation/typescript/react-navigation.d.ts @@ -1016,7 +1016,11 @@ declare module 'react-navigation' { style?: StyleProp; labelStyle?: StyleProp; }; + drawerType?: 'front' | 'back' | 'slide'; drawerLockMode?: DrawerLockMode; + edgeWidth?: number; + hideStatusBar?: boolean; + overlayColor?: string; } export function DrawerNavigator(