Newer
Older
Matiss Janis Aboltins
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
import { type ComponentProps, forwardRef } from 'react';
import { colors } from '../../style';
import View from './View';
type CardProps = ComponentProps<typeof View>;
const Card = forwardRef<HTMLDivElement, CardProps>(
({ children, ...props }, ref) => {
return (
<View
{...props}
ref={ref}
style={[
{
marginTop: 15,
marginLeft: 5,
marginRight: 5,
borderRadius: 6,
backgroundColor: 'white',
borderColor: colors.p3,
boxShadow: '0 1px 2px #9594A8',
},
props.style,
]}
>
<View
style={{
borderRadius: 6,
overflow: 'hidden',
}}
>
{children}
</View>
</View>
);
},
);
export default Card;