10 lines
279 B
TypeScript
10 lines
279 B
TypeScript
import { View, ViewProps } from 'react-native';
|
|
|
|
export function Card({ children, className = '', ...props }: ViewProps & { className?: string }) {
|
|
return (
|
|
<View className={`bg-white rounded-2xl p-4 shadow-sm ${className}`} {...props}>
|
|
{children}
|
|
</View>
|
|
);
|
|
}
|