rn-customize-avatar
Version:
This package is inspired by whatsapp, instagram custom avatar. You can customize your own avatar and use as a profile in your project
20 lines (15 loc) • 460 B
TypeScript
import { FlatListProps } from 'react-native';
import { SkSVG } from '@shopify/react-native-skia';
export interface Item {
svg: SkSVG;
value: string;
}
export interface ElementListProps {
list: (Item | string)[];
flatListProps?: FlatListProps<Item>;
listBgColor?: string;
onPressItem: (selectedStyle: Item | string) => void;
bgColour?: string;
}
declare const ElementList: (props: ElementListProps) => JSX.Element;
export default ElementList;