From a12c36639a7afa948a88648356f16a8dd8a84bde Mon Sep 17 00:00:00 2001 From: Roman Vyakhirev Date: Mon, 11 Feb 2019 15:35:24 +0100 Subject: [PATCH] Include missing props for TabBar, align sort order with documentation --- types/react-native-tab-view/index.d.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/types/react-native-tab-view/index.d.ts b/types/react-native-tab-view/index.d.ts index 8118239f8a..a6e6b27735 100644 --- a/types/react-native-tab-view/index.d.ts +++ b/types/react-native-tab-view/index.d.ts @@ -202,20 +202,25 @@ export type IndicatorProps< export type TabBarProps = SceneRendererProps< T > & { - scrollEnabled?: boolean + getLabelText?: (scene: Scene) => string | undefined | null + getAccessible?: (scene: Scene) => boolean + getAccessibilityLabel?: (scene: Scene) => string | undefined | null + getTestID?: (scene: Scene) => string | undefined | null + renderIcon?: (scene: Scene) => ReactNode + renderLabel?: (scene: Scene) => ReactNode + renderIndicator?: (props: IndicatorProps) => ReactNode + renderBadge?: (scene: Scene) => ReactNode + onTabPress?: (scene: Scene) => void + onTabLongPress?: (scene: Scene) => void pressColor?: string pressOpacity?: number - getLabelText?: (scene: Scene) => string | undefined | null - renderLabel?: (scene: Scene) => ReactNode - renderIcon?: (scene: Scene) => ReactNode - renderBadge?: (scene: Scene) => ReactNode - renderIndicator?: (props: IndicatorProps) => ReactNode - onTabPress?: (scene: Scene) => void + scrollEnabled?: boolean + bounces?: boolean + useNativeDriver?: boolean; tabStyle?: StyleProp indicatorStyle?: StyleProp labelStyle?: StyleProp style?: StyleProp - useNativeDriver?: boolean; } export class TabBar extends PureComponent> {}