UNPKG

react-native-form-model

Version:

An easily testable and opinionated React Native form model builder written in pure JavaScript.

17 lines (16 loc) 789 B
import React from 'react'; import { StyleProp, TextStyle, ViewProps, ViewStyle } from 'react-native'; export interface SegmentedControlProps extends ViewProps { selectedIndex?: number; possibleValues: string[]; optional?: boolean; clearButtonMode?: 'auto' | 'always' | 'never'; disabled?: boolean; color?: string; disabledColor?: string; onSelect: (index: number) => any; textStyle?: StyleProp<TextStyle>; itemStyle?: StyleProp<ViewStyle>; } declare const SegmentedControl: React.MemoExoticComponent<({ selectedIndex: selectedIndexProp, possibleValues, optional, clearButtonMode, disabled, onSelect, textStyle: textStyleProp, itemStyle: itemStyleProp, style, ...otherProps }: SegmentedControlProps) => JSX.Element>; export default SegmentedControl;