Check out example codes for "how to style textfield swiftui". It will help you in understanding the concepts better.

Code Example 1

TextField("Enter some text", text: $yourBindingHere)
    .textFieldStyle(RoundedBorderTextFieldStyle())

Learn ReactJs, React Native from akashmittal.com