prop stype失败:提供给'TextInput'的'object'类型的prop'value'无效,预期为'string'

时间:2019-06-07 06:55:47

标签: react-native

我不知道为什么在FloatLabel组件的值属性中分配值时会收到警告。 预先感谢

<FloatLabel
  inputStyle={styletheme.inputLabel}
  labelStyle={styletheme.labelInput}
  style={styletheme.formInput}
  keyboardType="email-address"
  onChangeText={(email)=>this.onEmailIdChange(email)}
  onBlur={(email)=>this.onEmailIdChange(email)}
  onFocus={(email)=>this.onEmailIdChange(email)}
  value={this.state.email.emailId}
 >
 E-mail id
 </FloatLabel>
 this.state= {
              email:{
                emailId:'',
                emailIdError:false,
                color:'rgba(255,255,255,1)'
               }
             }

enter image description here

0 个答案:

没有答案