rn-single-multi-deletable-select
Version:
A react native reusable component with 3 options: single select, multi select and deletable items with option to show image and text or just text.
26 lines (22 loc) • 639 B
text/typescript
import {TextStyle, ViewStyle} from "react-native";
import {ListItem} from "../interfaces";
type TabItemProps = {
onPress: (item: ListItem) => void;
item: ListItem;
selectedItemsIndexs: number[];
onPressDelete: (item: ListItem) => void;
isDeletable: boolean;
colorSelected?: string;
colorUnSelected?: string;
textStyle?: TextStyle;
containerStyle?: ViewStyle;
};
type TabItemStylesProps = {
isSelected?: boolean;
isImageView: boolean;
colorSelected?: string;
colorUnSelected?: string;
textStyle?: TextStyle;
containerStyle?: ViewStyle;
};
export {TabItemProps, TabItemStylesProps};