From 0f0504a28cb3711fbecd34f95812f049c13f3748 Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Tue, 20 Jun 2017 12:49:35 +0200 Subject: [PATCH 1/2] Update index.d.ts --- types/react-navigation/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 7d26058ad3..54375de258 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -485,7 +485,8 @@ interface NavigationContainerProps { onNavigationStateChange?: ( preNavigationState: NavigationState, nextNavigationState: NavigationState, - ) => void + ) => void, + style?: ViewStyle } interface NavigationContainerState { From 21b658372087a58c502783731f29baf6dbd839d2 Mon Sep 17 00:00:00 2001 From: Aleksandar Toplek Date: Wed, 21 Jun 2017 09:24:38 +0200 Subject: [PATCH 2/2] Added test --- types/react-navigation/react-navigation-tests.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/react-navigation/react-navigation-tests.tsx b/types/react-navigation/react-navigation-tests.tsx index c27533a6f3..738bd8c456 100644 --- a/types/react-navigation/react-navigation-tests.tsx +++ b/types/react-navigation/react-navigation-tests.tsx @@ -73,3 +73,9 @@ const CustomTransitioner = (props: CustomTransitionerProps) => { onTransitionEnd={() => { }} /> } + +const BasicStackNavigation = StackNavigator({ + StartScreen: { screen: Start } +}); + +