[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
parent 562585b848
commit 4dd8a9451c

View File

@@ -431,10 +431,9 @@ declare module 'react-navigation' {
| ((options: { tintColor: ?string, focused: boolean }) => ?React$Node),
tabBarVisible?: boolean,
tabBarTestIDProps?: { testID?: string, accessibilityLabel?: string },
tabBarOnPress?: (
scene: TabScene,
jumpToIndex: (index: number) => void
) => void,
tabBarOnPress?: ({
navigation: NavigationScreenProp<NavigationRoute>,
}) => void,
|};
/**