Commit 7e73885b by Denglingling

避免三指截屏报错

parent acf2bce2
Showing with 2 additions and 0 deletions
...@@ -15,6 +15,8 @@ const store = configureStore(); ...@@ -15,6 +15,8 @@ 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, autoCapitalize: 'none' }) TextInput.defaultProps = Object.assign({}, TextInput.defaultProps, { allowFontScaling: false, autoCapitalize: 'none' })
// 避免 three fingers screenshots reporting errors
console.reportErrorsAsExceptions = false;
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