Commit c96ed5be by Denglingling

【TextInput】设置默认首字母不大写(解决IOS下默认大写问题)

parent c1258d20
Showing with 2 additions and 2 deletions
...@@ -12,9 +12,9 @@ import configureStore from './app/store/configureStore'; ...@@ -12,9 +12,9 @@ import configureStore from './app/store/configureStore';
import Router from './app/Router'; import Router from './app/Router';
const store = configureStore(); const store = configureStore();
// 字体不随系统字体变化 // 字体不随系统字体变化 首字母不大写
Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false }) Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false })
TextInput.defaultProps = Object.assign({}, TextInput.defaultProps, { allowFontScaling: false }) TextInput.defaultProps = Object.assign({}, TextInput.defaultProps, { allowFontScaling: false, autoCapitalize: 'none' })
export default class App extends Component { export default class App extends Component {
render() { render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment