UNPKG

@janiscommerce/ui-native

Version:
23 lines (22 loc) 737 B
import React from 'react'; import { ViewStyle } from 'react-native'; declare const checkLocation: readonly ["left", "right"]; type positions = (typeof checkLocation)[number]; declare const CheckSizeValues: { sm: number; md: number; lg: number; }; type sizeType = typeof CheckSizeValues; type sizeKeys = keyof sizeType; interface RadioButtonProps { children?: React.ReactNode | string; selected?: boolean; onPress?: () => {}; checkPosition?: positions; disabled?: boolean; checkSize?: sizeKeys; style?: ViewStyle; } declare const RadioButton: ({ children, onPress, selected, checkPosition, checkSize, disabled, style, ...props }: RadioButtonProps) => React.JSX.Element; export default RadioButton;