react-native-segment-control-ui
Version:
Segment Control for React Native
23 lines • 588 B
TypeScript
import type { TextStyle, ViewStyle } from 'react-native';
export interface RefObject {
updateActive: (index: number) => void;
}
export interface Props<T> {
segments: T[];
iconField?: keyof T;
labelField?: keyof T;
iconActiveField?: keyof T;
duration?: number;
activeTab?: number;
onPress?: (value: T, index: number) => void;
style?: ViewStyle;
activeStyle?: ViewStyle;
textStyle?: TextStyle;
textActiveStyle?: TextStyle;
testID?: string;
}
export interface ObjExtend {
title?: '';
icon?: '';
}
//# sourceMappingURL=type.d.ts.map