MCPcopy Create free account
hub / github.com/animate-react-native/marquee / Box

Function Box

example/src/components/Box.tsx:4–30  ·  view source on GitHub ↗
({
  children,
  size = 100,
  spacing = 0,
  primary = true,
}: React.PropsWithChildren<{
  size?: number;
  spacing?: number;
  primary?: boolean;
}>)

Source from the content-addressed store, hash-verified

2import { View } from 'react-native';
3
4export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected