mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Merge pull request #17320 from AleksandarDev/react-navigation-container-style
[@types/react-navigation] Added style prop to NavigationContainerProps
This commit is contained in:
3
types/react-navigation/index.d.ts
vendored
3
types/react-navigation/index.d.ts
vendored
@@ -486,7 +486,8 @@ interface NavigationContainerProps {
|
||||
onNavigationStateChange?: (
|
||||
preNavigationState: NavigationState,
|
||||
nextNavigationState: NavigationState,
|
||||
) => void
|
||||
) => void,
|
||||
style?: ViewStyle
|
||||
}
|
||||
|
||||
interface NavigationContainerState {
|
||||
|
||||
@@ -73,3 +73,9 @@ const CustomTransitioner = (props: CustomTransitionerProps) => {
|
||||
onTransitionEnd={() => { }}
|
||||
/>
|
||||
}
|
||||
|
||||
const BasicStackNavigation = StackNavigator({
|
||||
StartScreen: { screen: Start }
|
||||
});
|
||||
|
||||
<BasicStackNavigation style={{ marginTop: 52 }} />
|
||||
|
||||
Reference in New Issue
Block a user