UNPKG

react-native-multiswitch-controller

Version:
15 lines 1 kB
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