Check out example codes for "how to select but not focus textfield swift". It will help you in understanding the concepts better.

Code Example 1

func textFieldShouldBeginEditing(textField: UITextField) -> Bool {
    return false;
}

Learn ReactJs, React Native from akashmittal.com