Check out example codes for "swiftui navigationview ignore top space". It will help you in understanding the concepts better.

Code Example 1

NavigationView {
    FileBrowserView(jsonFromCall: URLRetrieve(URLtoFetch: applicationDelegate.apiURL))
        .navigationBarTitle("")
        .navigationBarHidden(true)
}

Learn ReactJs, React Native from akashmittal.com