2.3.9 Nested Views Codehs Link -
// Child 4: Follow Button Text var buttonText = new Text("Follow"); buttonText.setPosition(100, 170); buttonText.setColor("white"); buttonText.setTextAlign("center");
In the context of CodeHS (which often uses a library similar to graphics.js or tab.js for mobile/tablet app design), a is a rectangular container that holds graphical elements or other views. When we say "nested," we mean one view is placed inside another. 2.3.9 nested views codehs
This boilerplate follows the typical requirements for this lesson: javascript StyleSheet, View 'react-native' // Parent View style=styles.container> /* Outer Nested View */ style=styles.outerBox> /* Inner Nested View */ style=styles.innerBox /> styles = StyleSheet.create({ container: flex: , backgroundColor: , alignItems: , justifyContent: , , outerBox: height: , width: , backgroundColor: , alignItems: , justifyContent: , , innerBox: height: , width: , backgroundColor: , , // Child 4: Follow Button Text var buttonText
Every nested structure consists of a (the outer container) and one or more Child Views (the inner components). 2.3.9 nested views codehs