From 36e4067ff8a239c92e8a00c579d0d6931ddb29a5 Mon Sep 17 00:00:00 2001 From: ArthurWang Date: Fri, 24 Aug 2018 16:18:15 +0800 Subject: [PATCH] Update index.d.ts --- index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.d.ts b/index.d.ts index 04e5f57..2702d42 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,9 +1,9 @@ import { StyleProp, ViewStyle, TextStyle } from "react-native"; export interface SegmentedControlTabProperties extends React.Props { // Default ['One', 'Two', 'Three'] ; titles of tabs Default - values?: Array + values?: Array // Default [0] ;index of tab item to be selected initially - selectedIndex?: Array + selectedIndex?: number // Default [0];Array of indices of tab items to be selected initially - when multiple prop is true else it will take selectedIndex selectedIndices?: Array // Default true; Boolean to enable or disable the component @@ -21,21 +21,21 @@ export interface SegmentedControlTabProperties extends React.Props // Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the active tab - activeTabStyle?: StyleProp + activeTabStyle?: StyleProp // Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the active tab text activeTabTextStyle?: StyleProp // Default [1, 2, 3];badges values to display - badges?: Array + badges?: Array // Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the badge container - tabBadgeContainerStyle?: StyleProp + tabBadgeContainerStyle?: StyleProp // Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the active badge container - activeTabBadgeContainerStyle?: StyleProp + activeTabBadgeContainerStyle?: StyleProp // Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the badge text - tabBadgeStyle?: StyleProp + tabBadgeStyle?: StyleProp // Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the active badge text - activeTabBadgeStyle?: StyleProp + activeTabBadgeStyle?: StyleProp // Default call-back function when a tab is selected - onTabPress?: (index: any) => void + onTabPress?: (index: number) => void // Default true;whether the segment & badge text should allow font scaling (default matches React Native default) allowFontScaling?: boolean // Default true;enables accessibility for each tab