import React, { Component } from 'react'
import { Platform, TextInput } from 'react-native'
export default class LLTextInput extends Component {
shouldComponentUpdate (nextProps){
return Platform.OS !== 'ios'
|| (this.props.value === nextProps.value && (nextProps.defaultValue == undefined || nextProps.defaultValue == '' ))
|| (this.props.defaultValue === nextProps.defaultValue && (nextProps.value == undefined || nextProps.value == '' ))
}
render() {
return <TextInput {...this.props} />
}
}
ReactNative iOS系统输入法下无法输入中文的解决方案
最新推荐文章于 2024-06-25 16:24:30 发布