mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
[react-navigation] Fix flow Object -> TS any
This commit is contained in:
4
types/react-navigation/index.d.ts
vendored
4
types/react-navigation/index.d.ts
vendored
@@ -149,7 +149,7 @@ export type NavigationScreenOptions = {
|
||||
|
||||
export type NavigationScreenConfigProps = {
|
||||
navigation: NavigationScreenProp<NavigationRoute, NavigationAction>,
|
||||
screenProps: Object,
|
||||
screenProps: any,
|
||||
};
|
||||
|
||||
export type NavigationScreenConfig<Options> =
|
||||
@@ -426,7 +426,7 @@ export type TransitionConfig = {
|
||||
transitionSpec?: NavigationTransitionSpec,
|
||||
// How to animate position and opacity of the screen
|
||||
// based on the value generated by the transitionSpec
|
||||
screenInterpolator?: (props: NavigationSceneRendererProps) => Object,
|
||||
screenInterpolator?: (props: NavigationSceneRendererProps) => any,
|
||||
};
|
||||
|
||||
export type NavigationAnimationSetter = (
|
||||
|
||||
Reference in New Issue
Block a user