StyleProp<> needs to wrap styling props

This commit is contained in:
Simon Knott
2018-12-10 13:43:50 +01:00
committed by GitHub
parent f89573a672
commit da8e8588fd
+3 -3
View File
@@ -57,7 +57,7 @@ export interface ScrollableTabViewProperties extends React.Props<ScrollableTabVi
/**
* style of the default tab bar's underline
*/
tabBarUnderlineStyle?: ViewStyle;
tabBarUnderlineStyle?: StyleProp<ViewStyle>;
/**
* color of the default tab bar's background, defaults to white
@@ -77,12 +77,12 @@ export interface ScrollableTabViewProperties extends React.Props<ScrollableTabVi
/**
* additional styles to the tab bar's text
*/
tabBarTextStyle?: TextStyle;
tabBarTextStyle?: StyleProp<TextStyle>;
/**
* style (View.propTypes.style)
*/
style?: ViewStyle;
style?: StyleProp<ViewStyle>;
/**
* props that are applied to root ScrollView/ViewPagerAndroid.