import * as React from "react"; import { Image, ImageSourcePropType, StyleProp, ImageStyle, } from "react-native"; import Config from "./Config"; import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createImageProp, } from "../core/component-types"; interface Props { source?: string | ImageSourcePropType; size?: number; style?: StyleProp; } const CircleImage: React.FC = ({ source = Config.placeholderImageURL, size = 60, style, ...props }) => { const borderRadius = size / 2; return ( ); }; export default CircleImage; export const SEED_DATA = { name: "Circle Image", tag: "CircleImage", description: "A circle image", category: COMPONENT_TYPES.media, props: { source: createImageProp(), size: { group: GROUPS.basic, label: "Size", description: "Size of your circle image", editable: true, required: false, formType: FORM_TYPES.number, propType: PROP_TYPES.NUMBER, min: 0, max: 300, precision: 0, step: 1, defaultValue: 60, }, }, };