From 8baaacb66458dd706421fcbc1fc1934cd1ebbb94 Mon Sep 17 00:00:00 2001 From: Mattijs Fuijkschot Date: Wed, 13 Jun 2018 22:44:29 -0700 Subject: [PATCH] - Keyboard layout now updates when changing keyboardType while it has focus (#19027) Summary: This PR makes sure that changing the `keyboardType` props of `` is reflected while the text field has focus. It is something that is also discusses in #13782. The workaround mentioned in that issue using `key` causes the TextInput to re-render itself which has some undesired side-effects. Fixes #13782 ```javascript export default class KeyboardTypeApp extends Component { state = { keyboardType: 'default' }; toggleKeyboardType = () => { this.setState({ keyboardType: this.state.keyboardType === 'default' ? 'numeric' : 'default' }); } render() { return (