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

Function BoxesExample

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

Source from the content-addressed store, hash-verified

2import { Scaffold, Modifier } from "jetpack-compose-react-native";
3
4export default function BoxesExample() {
5 const { width, height } = useWindowDimensions();
6 console.log("width", width);
7 return (
8 <Scaffold
9 style={{
10 width,
11 height: height - 80,
12 }}
13 modifier={Modifier.fillMaxSize()}
14 >
15 <Text>Element inside a Scaffold</Text>
16 </Scaffold>
17 );
18}
19
20const styles = StyleSheet.create({
21 header: {

Callers

nothing calls this directly

Calls 1

fillMaxSizeMethod · 0.65

Tested by

no test coverage detected