()
| 2 | import { Card, Button } from "jetpack-compose-react-native"; |
| 3 | |
| 4 | export 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 | |
| 24 | const styles = StyleSheet.create({ |
| 25 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected