import React from "react"; import { withTheme } from "@draftbit/theme"; import Touchable from "../components/Touchable"; import { StyleProp, ViewStyle } from "react-native"; import type { ReadTheme } from "@draftbit/theme"; type Props = { numColumns?: number; children?: React.ReactNode; onPress?: () => void; style?: StyleProp; theme: ReadTheme; }; const getWidth = (numColumns: number) => { switch (numColumns) { case 1: return "33%"; case 2: return "50%"; default: return "100%"; } }; /** * @deprecated DEPRECATED */ const Card: React.FC> = ({ numColumns = 3, children, onPress, style, ...rest }) => { const width = getWidth(numColumns); return ( {children} ); }; export default withTheme(Card);