Adding missing getButtonComponent props to flow (#5648)

This commit is contained in:
Faustino Kialungila
2019-03-28 01:01:48 +01:00
committed by Brent Vatne
parent 71cb16dc7f
commit 8788dd77b4

View File

@@ -1195,6 +1195,7 @@ declare module 'react-navigation' {
jumpToIndex: (index: number) => void,
}) => void,
renderIcon: (scene: TabScene) => React$Element<*>,
getButtonComponent: (scene: TabScene) => React$Element<*>,
labelStyle?: TextStyleProp,
iconStyle?: ViewStyleProp,
};
@@ -1223,6 +1224,7 @@ declare module 'react-navigation' {
}) => void,
getTestIDProps: (scene: TabScene) => (scene: TabScene) => any,
renderIcon: (scene: TabScene) => React$Node,
getButtonComponent: (scene: TabScene) => React$Node,
style?: ViewStyleProp,
animateStyle?: ViewStyleProp,
labelStyle?: TextStyleProp,