({
children,
size = 100,
spacing = 0,
primary = true,
}: React.PropsWithChildren<{
size?: number;
spacing?: number;
primary?: boolean;
}>)
| 2 | import { View } from 'react-native'; |
| 3 | |
| 4 | export function Box({ |
| 5 | children, |
| 6 | size = 100, |
| 7 | spacing = 0, |
| 8 | primary = true, |
| 9 | }: React.PropsWithChildren<{ |
| 10 | size?: number; |
| 11 | spacing?: number; |
| 12 | primary?: boolean; |
| 13 | }>) { |
| 14 | return ( |
| 15 | <View |
| 16 | style={{ |
| 17 | width: size, |
| 18 | height: size, |
| 19 | borderRadius: 16, |
| 20 | marginRight: spacing, |
| 21 | marginBottom: spacing, |
| 22 | justifyContent: 'center', |
| 23 | alignItems: 'center', |
| 24 | backgroundColor: primary ? '#F0F464' : '#1f1f1f', |
| 25 | }} |
| 26 | > |
| 27 | {children} |
| 28 | </View> |
| 29 | ); |
| 30 | } |
nothing calls this directly
no outgoing calls
no test coverage detected