UNPKG

react-native-resegmented-control

Version:

A fully customizable, declarative component that mimics the design of UISegmentedControl from iOS 13. Supported on iOS and Android

17 lines (16 loc) 731 B
import React from 'react'; import { ViewStyle } from 'react-native'; import { SegmentProps } from '../Segment'; export interface SegmentedControlProps { activeTintColor?: string; children: React.ReactElement<SegmentProps> | React.ReactElement<SegmentProps>[]; disabled?: boolean; disabledStyle?: ViewStyle; inactiveTintColor?: string; initialSelectedName?: string; onChangeValue?: (name: string) => void; sliderStyle?: ViewStyle; style?: ViewStyle; } export declare const SegmentedControl: ({ activeTintColor, children, disabled, disabledStyle, inactiveTintColor, initialSelectedName, onChangeValue, sliderStyle, style, }: SegmentedControlProps) => JSX.Element; export default SegmentedControl;