From bf6cac9af2cc84a9bfa87e726c051cc134cc41f0 Mon Sep 17 00:00:00 2001 From: Timmy Willison <4timmywil@gmail.com> Date: Wed, 15 May 2019 23:24:12 -0400 Subject: [PATCH] Add safeAreaInset type to BottomTabBarProps (#5906) * Add safeAreaInset type to BottomTabBarProps * Update CHANGELOG.md --- packages/react-navigation/CHANGELOG.md | 1 + packages/react-navigation/typescript/react-navigation.d.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/packages/react-navigation/CHANGELOG.md b/packages/react-navigation/CHANGELOG.md index b3f3ee7f..397176f7 100644 --- a/packages/react-navigation/CHANGELOG.md +++ b/packages/react-navigation/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] - Update typescript with headerLeftContainerStyle and headerRightContainerStyle +- Update typescript - Add `safeAreaInset` to `BottomTabBarProps` ## Fixes diff --git a/packages/react-navigation/typescript/react-navigation.d.ts b/packages/react-navigation/typescript/react-navigation.d.ts index 906b812b..c6a75360 100644 --- a/packages/react-navigation/typescript/react-navigation.d.ts +++ b/packages/react-navigation/typescript/react-navigation.d.ts @@ -1158,6 +1158,12 @@ declare module 'react-navigation' { labelStyle?: TextStyle; tabStyle?: ViewStyle; showIcon?: boolean; + safeAreaInset?: { + top?: SafeAreaViewForceInsetValue, + bottom?: SafeAreaViewForceInsetValue, + left?: SafeAreaViewForceInsetValue, + right?: SafeAreaViewForceInsetValue + }; } export const MaterialTopTabBar: React.ComponentType;