找不到名称按钮的视图配置

时间:2018-08-04 11:26:54

标签: react-native

render(){
    return(
        <View style={styles.container}>
      <TextInput style={styles.inputBox} 
          underlineColorAndroid='rgba(0,0,0,0)' 
          placeholder="Email"
          placeholderTextColor = "#ffffff"
          selectionColor="#fff"
          keyboardType="email-address"
          onSubmitEditing={()=> this.password.focus()}
          />
      <TextInput style={styles.inputBox} 
          underlineColorAndroid='rgba(0,0,0,0)' 
          placeholder="Password"
          secureTextEntry={true}
          placeholderTextColor = "#ffffff"
          ref={(input) => this.password = input}
          />  
       <TouchableOpacity style={styles.button}>
         <Text style={styles.buttonText}>{this.props.type}</Text>
       </TouchableOpacity> 

       **<button className="save-btn" type="button" onPress={HandleLogin(this.state.email, this.state.password)}> Login </button>   
    </View>**

)

尝试将电子邮件和密码作为参数发送到功能handlelogin-在名称按钮中找不到在按钮视图配置中的错误...

0 个答案:

没有答案