import * as React from "react"; import { withTheme } from "../core/theming"; import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "../core/component-types"; import Header from "./Header"; import theme from "../styles/DefaultTheme"; import { StyleProp, ViewStyle } from "react-native"; type Props = { title: string; buttonText: string; icon: string; onPress?: () => void; style?: StyleProp; theme: typeof theme; }; const HeaderMedium: React.FC = ({ title, buttonText, icon, onPress = () => {}, style, theme: { colors, typography }, }) => { return (
); }; export default withTheme(HeaderMedium); export const SEED_DATA = [ { name: "Header Medium", tag: "HeaderMedium", description: "A medium header with an optional touchable right aligned text and icon.", category: COMPONENT_TYPES.header, preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png", supports_list_render: false, props: { title: { group: GROUPS.data, label: "Title", description: "Text to display", formType: FORM_TYPES.string, propType: PROP_TYPES.STRING, defaultValue: "Title", editable: true, required: false, }, buttonText: { group: GROUPS.data, label: "Button text", description: "Right aligned button text to display", formType: FORM_TYPES.string, propType: PROP_TYPES.STRING, defaultValue: "See All", editable: true, required: false, }, icon: { group: GROUPS.basic, label: "Icon", description: "Name of icon to display", formType: FORM_TYPES.icon, propType: PROP_TYPES.ASSET, defaultValue: null, editable: true, required: false, }, onPress: { group: GROUPS.basic, label: "Action", description: "Action to execute when button pressed", editable: true, required: false, formType: FORM_TYPES.action, propType: PROP_TYPES.STRING, defaultValue: null, }, }, layout: {}, }, ];