eslint报错问题
<TextInput
style={styles.textInputStyle}
underlineColorAndroid="transparent"
keyboardType="numeric"
maxLength={11}
placeholder="请输入收到的验证码"
placeholderTextColor="#cccccc"
onChangeText={text => this.setState({ msgCode: text })}
ref="MsgCode"
/>
正确格式为下面 用到refs属性时,比如:直接this.MsgCode.blur()
<TextInput
style={styles.textInputStyle}
underlineColorAndroid="transparent"
keyboardType="numeric"
maxLength={11}
placeholder="请输入收到的验证码"
placeholderTextColor="#cccccc"
onChangeText={text => this.setState({ msgCode: text })}
ref={(c) => { this.MsgCode = c; }}
/>