MCPcopy Create free account
hub / github.com/AppAndFlow/react-native-safe-area-context / Card

Function Card

example/src/components/Card.tsx:4–26  ·  view source on GitHub ↗
({
  title,
  children,
}: {
  title: string;
  children: React.ReactNode;
})

Source from the content-addressed store, hash-verified

2import { Text, View } from 'react-native';
3
4export function Card({
5 title,
6 children,
7}: {
8 title: string;
9 children: React.ReactNode;
10}) {
11 return (
12 <View style={{ padding: 16, backgroundColor: 'white', marginBottom: 4 }}>
13 <Text
14 style={{
15 fontSize: 20,
16 fontWeight: 'bold',
17 marginBottom: 16,
18 color: '#292929',
19 }}
20 >
21 {title}
22 </Text>
23 {children}
24 </View>
25 );
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected