mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
Default TextInput autoCapitalize to sentences on Android
Summary: Currently `TextInput.autoCapitalize` is defaulting to 'none' on Android. This PR sets the default to 'sentences', to match iOS and the PropTypes documentation. Fixes #14846 Closes https://github.com/facebook/react-native/pull/14853 Differential Revision: D5918196 Pulled By: shergin fbshipit-source-id: d0d00e75d44a410c6821b4ff8910099aae2b2c7c
This commit is contained in:
parent
ee8aeddc52
commit
227a5f4e8f
@ -749,7 +749,9 @@ const TextInput = createReactClass({
|
||||
props.style = [props.style, {height: this.state.layoutHeight}];
|
||||
}
|
||||
props.autoCapitalize =
|
||||
UIManager.AndroidTextInput.Constants.AutoCapitalizationType[this.props.autoCapitalize];
|
||||
UIManager.AndroidTextInput.Constants.AutoCapitalizationType[
|
||||
props.autoCapitalize || 'sentences'
|
||||
];
|
||||
/* $FlowFixMe(>=0.53.0 site=react_native_fb,react_native_oss) This comment
|
||||
* suppresses an error when upgrading Flow's support for React. To see the
|
||||
* error delete this comment and run Flow. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user