Check out example codes for "Make a VStack fill the width of the screen in SwiftUI". It will help you in understanding the concepts better.

Code Example 1

struct ContentView : View {
        var body: some View {
            VStack(alignment: .leading) {
                Text("Hello World")
            .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity, alignment: .topLeading)

Learn ReactJs, React Native from