[flow] Fix tabBarOnPress type for react-navigation@2.0 (#4256)

This commit is contained in:
Ashoat Tevosyan
2018-05-23 13:18:11 -04:00
committed by Brent Vatne
parent 550001b053
commit 72f17538c2

View File

@@ -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,
|}; |};
/** /**