react-native-multiswitch-controller
Version:
Smooth animated multiswitch component with dynamic width
24 lines • 978 B
TypeScript
import { type TextStyle, type ViewStyle } from 'react-native';
import type { ControllerVariant } from './types';
import type { ControlListState } from './useControlListState';
type AlignmentOption = 'left' | 'right' | 'center';
export type SwitchListStylingProps = {
containerStyle?: ViewStyle;
inactiveOptionContainerStyle?: ViewStyle;
activeOptionContainerStyle?: ViewStyle;
inactiveTextStyle?: TextStyle;
activeTextStyle?: TextStyle;
containerHeight: number;
containerPadding?: number;
optionGap: number;
optionHeight: number;
optionPadding: number;
align: AlignmentOption;
};
export type SwitchListProps<TValue> = ControlListState<TValue> & SwitchListStylingProps & {
onPressItem?: (value: TValue) => void;
variant: ControllerVariant;
};
declare function SwitchList<TValue>(props: SwitchListProps<TValue>): import("react/jsx-runtime").JSX.Element | null;
export default SwitchList;
//# sourceMappingURL=SwitchList.d.ts.map