mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 09:25:50 +08:00
Merge pull request #16432 from agentilela/master
react-navigation: NavigationContainerProps/navigation param should be optional
This commit is contained in:
4
types/react-navigation/index.d.ts
vendored
4
types/react-navigation/index.d.ts
vendored
@@ -477,7 +477,7 @@ export interface LayoutEvent {
|
||||
}
|
||||
|
||||
interface NavigationContainerProps {
|
||||
navigation: NavigationProp<any, NavigationAction>
|
||||
navigation?: NavigationProp<any, NavigationAction>
|
||||
onNavigationStateChange?: (
|
||||
preNavigationState: NavigationState,
|
||||
nextNavigationState: NavigationState,
|
||||
@@ -571,7 +571,7 @@ export interface StackNavigatorScreenOptions {
|
||||
title?: string;
|
||||
headerVisible?: boolean;
|
||||
headerTitle?: string|React.ReactElement<any>;
|
||||
headerBackTitle?: string|null;
|
||||
headerBackTitle?: string;
|
||||
headerTruncatedBackTitle?: string;
|
||||
headerRight?: React.ReactElement<any>;
|
||||
headerLeft?: React.ReactElement<any>;
|
||||
|
||||
Reference in New Issue
Block a user