MCPcopy Create free account
hub / github.com/andrew-levy/jetpack-compose-react-native / CardsExample

Function CardsExample

example/app/cards.tsx:4–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { Card, Button } from "jetpack-compose-react-native";
3
4export default function CardsExample() {
5 return (
6 <View style={styles.container}>
7 <Text style={styles.header}>Card Example</Text>
8 <Card variant="elevated" style={{ width: 200, height: 100 }}>
9 <Text>Elevated Card Content</Text>
10 <Button text="Click me" />
11 </Card>
12 <Card variant="filled" style={{ width: 200, height: 100 }}>
13 <Text>Filled Card Content</Text>
14 <Button text="Click me" />
15 </Card>
16 <Card variant="outlined" style={{ width: 200, height: 100 }}>
17 <Text>Outlined Card Content</Text>
18 <Button text="Click me" />
19 </Card>
20 </View>
21 );
22}
23
24const styles = StyleSheet.create({
25 container: {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected