diff --git a/types/react-navigation/index.d.ts b/types/react-navigation/index.d.ts index 7c1b0cec8b..829c897a6e 100644 --- a/types/react-navigation/index.d.ts +++ b/types/react-navigation/index.d.ts @@ -486,7 +486,8 @@ interface NavigationContainerProps { onNavigationStateChange?: ( preNavigationState: NavigationState, nextNavigationState: NavigationState, - ) => void + ) => void, + style?: ViewStyle } interface NavigationContainerState { 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 } +}); + +