mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #31231 from Skn0tt/patch-1
[react-native-scrollable-tab-view] StyleProp<> needs to wrap styling props
This commit is contained in:
+4
-4
@@ -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<ScrollableTabView> {
|
||||
/**
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user