Closed IgorVanian closed 2 months ago
work around until fixed in Xcode
func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool {
if textField == yourField { textField.keyboardType = .numbersAndPunctuation }
return true
}
work around until fixed in Xcode
func textFieldShouldBeginEditing(_ textField: UITextField) -> Bool { if textField == yourField { textField.keyboardType = .numbersAndPunctuation } return true }
Where should we paste this code in Xcode?
I think it goes in RCTBackedTextInputDelegateAdapter.m
, @kumashiro17 can you confirm?
Also, what is the real issue here?
Original issue: https://github.com/facebook/react-native/issues/22392
This issue appeared while being tested on iPhone X. Impossible to change the keyboard type after it has been triggered.