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

Function BoxesExample

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

Source from the content-addressed store, hash-verified

2import { Box, Icon, Modifier } from "jetpack-compose-react-native";
3
4export 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
20const styles = StyleSheet.create({
21 header: {

Callers

nothing calls this directly

Calls 1

fillMaxWidthMethod · 0.65

Tested by

no test coverage detected