antd-mobile-rn
Version:
基于蚂蚁金服移动设计规范的 React Native 组件库
27 lines (26 loc) • 975 B
TypeScript
import React from 'react';
import { StyleProp, ViewStyle } from 'react-native';
import { SegmentedControlPropsType } from './PropsType';
import { ISegmentControlStyle } from './style/index.native';
export interface SegmentControlNativeProps extends SegmentedControlPropsType {
styles?: ISegmentControlStyle;
style?: StyleProp<ViewStyle>;
}
export default class SegmentedControl extends React.Component<SegmentControlNativeProps, any> {
static defaultProps: {
selectedIndex: number;
disabled: boolean;
values: never[];
onChange(): void;
onValueChange(): void;
tintColor: string;
style: {};
styles: {
[x: string]: import("react-native").RegisteredStyle<any>;
};
};
constructor(props: SegmentControlNativeProps);
componentWillReceiveProps(nextProps: SegmentControlNativeProps): void;
onPress(e: any, index: number, value: string): void;
render(): JSX.Element;
}