react-native-multiswitch-controller
Version:
Smooth animated multiswitch component with dynamic width
15 lines • 1 kB
TypeScript
import { type Ref } from 'react';
import { type SwitchListStylingProps } from './SwitchList';
import type { ControlOption, ControllerVariant } from './types';
import { type ControlListRef } from './useControlListState';
type MultiswitchControllerProps<TValue> = {
options: ControlOption<TValue>[];
defaultOption: TValue;
variant?: ControllerVariant;
onChangeOption?: (value: TValue) => void;
onPressItem?: (value: TValue) => void;
ref?: Ref<ControlListRef<TValue>>;
} & Partial<SwitchListStylingProps>;
declare function MultiswitchController<TValue>({ options, defaultOption, variant, onChangeOption, onPressItem, containerStyle, inactiveOptionContainerStyle, activeOptionContainerStyle, inactiveTextStyle, activeTextStyle, containerHeight, containerPadding, optionGap, optionHeight, optionPadding, align, ref, }: MultiswitchControllerProps<TValue>): import("react/jsx-runtime").JSX.Element;
export default MultiswitchController;
//# sourceMappingURL=MultiswitchController.d.ts.map