UNPKG

@devrue/rn-select

Version:

Custom typescript only select component for react native

19 lines 708 B
/// <reference types="react" /> import type { IconStyle, Option } from '../types'; import { type TextStyle, type ViewStyle } from 'react-native'; export interface Props { items: Option[]; onRemove: (key: string) => void; pillTextStyle?: TextStyle; pillRemoveContainerStyle?: ViewStyle; pillRemoveIconStyle?: IconStyle; } export default function Selections({ items, onRemove, pillTextStyle, pillRemoveContainerStyle, pillRemoveIconStyle, }: Props): JSX.Element; export interface SelectionChipProps { value: string; handleRemove: () => void; textStyle?: TextStyle; removeContainerStyle?: ViewStyle; removeIconStyle?: IconStyle; } //# sourceMappingURL=Selections.d.ts.map