mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-09 09:13:32 +08:00
Merge pull request #7 from jarvisluong/patch-1
change ComponentType to Element
This commit is contained in:
2
packages/animated-switch/index.d.ts
vendored
2
packages/animated-switch/index.d.ts
vendored
@@ -3,7 +3,7 @@ import { NavigationRouteConfigMap, SwitchNavigatorConfig, NavigationContainer }
|
||||
import { Transition } from 'react-native-reanimated';
|
||||
|
||||
export interface AnimatedSwitchNavigatorConfig extends SwitchNavigatorConfig {
|
||||
transition?: React.ComponentType<Transition>;
|
||||
transition?: React.Element<typeof Transition>;
|
||||
}
|
||||
|
||||
export default function createAnimatedSwitchNavigator(
|
||||
|
||||
Reference in New Issue
Block a user