mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-30 05:15:25 +08:00
[flow] Fix tabBarOnPress type for react-navigation@2.0 (#4256)
This commit is contained in:
committed by
Brent Vatne
parent
550001b053
commit
72f17538c2
7
flow/react-navigation.js
vendored
7
flow/react-navigation.js
vendored
@@ -431,10 +431,9 @@ declare module 'react-navigation' {
|
|||||||
| ((options: { tintColor: ?string, focused: boolean }) => ?React$Node),
|
| ((options: { tintColor: ?string, focused: boolean }) => ?React$Node),
|
||||||
tabBarVisible?: boolean,
|
tabBarVisible?: boolean,
|
||||||
tabBarTestIDProps?: { testID?: string, accessibilityLabel?: string },
|
tabBarTestIDProps?: { testID?: string, accessibilityLabel?: string },
|
||||||
tabBarOnPress?: (
|
tabBarOnPress?: ({
|
||||||
scene: TabScene,
|
navigation: NavigationScreenProp<NavigationRoute>,
|
||||||
jumpToIndex: (index: number) => void
|
}) => void,
|
||||||
) => void,
|
|
||||||
|};
|
|};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user