Check out example codes for "xcode get info from text field". It will help you in understanding the concepts better.

Code Example 1

let text = myTextField.text

Learn ReactJs, React Native from akashmittal.com