import * as React from "react"; import { View, StyleProp, ViewStyle } from "react-native"; // @ts-ignore import type { ViewStyleProp } from "react-native/Libraries/StyleSheet/StyleSheet"; /** * @deprecated DEPRECATED */ export function Center({ width = 240, height = 200, children, bgColor, style, ...rest }: { width: number; height: number; bgColor: string; children: React.ReactNode; style?: StyleProp; }) { return ( {children} ); } /** * @deprecated DEPRECATED */ export function Circle({ size = 50, bgColor, children, style, ...rest }: { size: number; bgColor: string; children: React.ReactNode; style?: StyleProp; }) { const borderRadius = 1000; return (
{children}
); } /** * @deprecated DEPRECATED */ export function Square({ size = 50, bgColor, children, style, ...rest }: { size: number; bgColor: string; children: React.ReactNode; style?: StyleProp; }) { return (
{children}
); } /** * @deprecated DEPRECATED */ export function Row({ justifyContent, alignItems, children, style, ...rest }: { alignItems: ViewStyleProp.alignItems; justifyContent: ViewStyleProp.justifyContent; children: React.ReactNode; style?: StyleProp; }) { return ( {children} ); } /** * @deprecated DEPRECATED */ export function Spacer({ top = 8, right = 8, bottom = 8, left = 8, children, style, ...rest }: { top?: number; right?: number; left?: number; bottom?: number; children: React.ReactNode; style?: StyleProp; }) { return ( {children} ); } /** * @deprecated DEPRECATED */ export function Stack({ children, justifyContent = "flex-start", alignItems = "flex-start", style, ...rest }: { justifyContent: ViewStyleProp.justifyContent; alignItems: ViewStyleProp.alignItems; children: React.ReactNode; style?: StyleProp; }) { return ( // style must go first since we don't want justifyContent, alignItems overridden {children} ); }