import { FlexAlignType, ViewStyle } from "react-native";

export interface ComponentProps {
  children?: any[];
  direction?: "row" | "column";
  style?: ViewStyle;
  justify?: string;
  align?: FlexAlignType;
  padding?: number;
  rowGap?: number;
  columnGap?: number;
  text?: string;
  title?: string;
  onPress?: () => void;
}

export interface ConfigItem {
  type: string;
  layout?: "row" | "column";
  props?: ComponentProps;
  children?: ConfigItem[];
}
