From da8e8588fd70b47f63bd27cfae0465282623de7f Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 10 Dec 2018 13:43:50 +0100 Subject: [PATCH 1/2] StyleProp<> needs to wrap styling props --- types/react-native-scrollable-tab-view/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-native-scrollable-tab-view/index.d.ts b/types/react-native-scrollable-tab-view/index.d.ts index d992012856..5d770b42ec 100644 --- a/types/react-native-scrollable-tab-view/index.d.ts +++ b/types/react-native-scrollable-tab-view/index.d.ts @@ -57,7 +57,7 @@ export interface ScrollableTabViewProperties extends React.Props; /** * color of the default tab bar's background, defaults to white @@ -77,12 +77,12 @@ export interface ScrollableTabViewProperties extends React.Props; /** * style (View.propTypes.style) */ - style?: ViewStyle; + style?: StyleProp; /** * props that are applied to root ScrollView/ViewPagerAndroid. From acfd863df20c7526d35483d72df0bff0038bfc3f Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Mon, 10 Dec 2018 13:47:12 +0100 Subject: [PATCH 2/2] Update index.d.ts --- types/react-native-scrollable-tab-view/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-scrollable-tab-view/index.d.ts b/types/react-native-scrollable-tab-view/index.d.ts index 5d770b42ec..2d3061594e 100644 --- a/types/react-native-scrollable-tab-view/index.d.ts +++ b/types/react-native-scrollable-tab-view/index.d.ts @@ -6,7 +6,7 @@ // TypeScript Version: 2.8 import * as React from 'react'; -import { Animated, ScrollViewProps, ViewStyle, TextStyle } from 'react-native'; +import { Animated, ScrollViewProps, ViewStyle, TextStyle, StyleProp } from 'react-native'; export interface ScrollableTabViewProperties extends React.Props { /**