()
| 2 | import { Box, Icon, Modifier } from "jetpack-compose-react-native"; |
| 3 | |
| 4 | export default function BoxesExample() { |
| 5 | return ( |
| 6 | <ScrollView style={{ flex: 1 }} contentContainerStyle={{ padding: 20 }}> |
| 7 | <Text style={styles.header}>Boxes Example</Text> |
| 8 | <Box contentAlignment="center" modifier={Modifier.fillMaxWidth()}> |
| 9 | <Text>Centered Box</Text> |
| 10 | <Icon |
| 11 | name="home" |
| 12 | theme="filled" |
| 13 | contentDescription="notifications icon" |
| 14 | /> |
| 15 | </Box> |
| 16 | </ScrollView> |
| 17 | ); |
| 18 | } |
| 19 | |
| 20 | const styles = StyleSheet.create({ |
| 21 | header: { |
nothing calls this directly
no test coverage detected