mirror of
https://github.com/zhigang1992/react-native-segmented-control-tab.git
synced 2026-05-01 05:42:06 +08:00
Update index.d.ts
This commit is contained in:
30
index.d.ts
vendored
30
index.d.ts
vendored
@@ -1,5 +1,5 @@
|
||||
|
||||
export interface SegmentedControlTtabProperties extends React.Props<ReactNativeSegmentedControlTab> {
|
||||
import { StyleProp, ViewStyle } from "react-native";
|
||||
export interface SegmentedControlTabProperties extends React.Props<ReactNativeSegmentedControlTab> {
|
||||
// Default ['One', 'Two', 'Three'] ; titles of tabs Default
|
||||
values?: Array<string>
|
||||
// Default [0] ;index of tab item to be selected initially
|
||||
@@ -13,27 +13,27 @@
|
||||
// Default 5;borderRadius of whole tab
|
||||
borderRadius?: number
|
||||
// Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the segmentedControl wrapper
|
||||
tabsContainerStyle?: any
|
||||
tabsContainerStyle?: StyleProp<ViewStyle>
|
||||
// Default default style opacity: 0.6;Custom style that can be passed when enable is set to false
|
||||
tabsContainerDisableStyle?: any
|
||||
tabsContainerDisableStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the tabs
|
||||
tabStyle?: any
|
||||
tabStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the tab title
|
||||
tabTextStyle?: any
|
||||
tabTextStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the active tab
|
||||
activeTabStyle?: any
|
||||
activeTabStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external styles can be passed to override the default styles of the active tab text
|
||||
activeTabTextStyle?: any
|
||||
activeTabTextStyle?: StyleProp<ViewStyle>
|
||||
// Default [1, 2, 3];badges values to display
|
||||
badges?: Array<number>
|
||||
// Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the badge container
|
||||
tabBadgeContainerStyle?: any
|
||||
tabBadgeContainerStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the active badge container
|
||||
activeTabBadgeContainerStyle?: any
|
||||
activeTabBadgeContainerStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the badge text
|
||||
tabBadgeStyle?: any
|
||||
tabBadgeStyle?: StyleProp<ViewStyle>
|
||||
// Default base styles added in SegmentedControlTab.js;external style can be passed to override the default style of the active badge text
|
||||
activeTabBadgeStyle?: any
|
||||
activeTabBadgeStyle?: StyleProp<ViewStyle>
|
||||
// Default call-back function when a tab is selected
|
||||
onTabPress?: (index: any) => void
|
||||
// Default true;whether the segment & badge text should allow font scaling (default matches React Native default)
|
||||
@@ -45,6 +45,6 @@
|
||||
// Default 1;Opacity value to customize tab press
|
||||
activeTabOpacity?: number
|
||||
|
||||
}
|
||||
export default class ReactNativeSegmentedControlTab extends React.Component<SegmentedControlTtabProperties>{
|
||||
}
|
||||
}
|
||||
export default class ReactNativeSegmentedControlTab extends React.Component<SegmentedControlTabProperties>{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user