Build: Box Layout Screen
This screen shows three colored boxes arranged vertically. Each box uses width, height, and flex properties to demonstrate how space is shared and sized in React Native layouts.
Target UI
┌─────────────────────────────┐ │ Box Layout Screen │ ├─────────────────────────────┤ │ ┌───────────────┐ │ │ │ Red Box │ │ │ │ width: 100 │ │ │ │ height: 100 │ │ │ └───────────────┘ │ │ │ │ ┌───────────────────────┐ │ │ │ Green Box │ │ │ │ flex: 1 │ │ │ └───────────────────────┘ │ │ │ │ ┌────────────────────────────┐ │ │ Blue Box │ │ │ flex: 2 │ │ └────────────────────────────┘ └─────────────────────────────┘
Create a vertical layout with three boxes stacked top to bottom.
The top box is red with fixed width 100 and height 100.
The middle box is green and uses flex: 1 to fill available space.
The bottom box is blue and uses flex: 2 to fill twice the space of the green box.
Use React Native StyleSheet for styling.
The screen background should be white.