-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
this.validate not working onPress button, only onChangeText input #10
Comments
try to call setState with whatever state you have, such as error state and pass with any value |
Use this Instead of |
import React, { Component } from 'react'; export default class App extends ValidationComponent { constructor(props) { _onPressButton = () => { } } } } _validateForm() { render() {
} } |
Did anyone found a solution for this? same issue happening in my app as well. My issue is: |
constructor(props) {
} _onPressButton = () => {
} |
I have this.validate({...}) method inside an onPress function, but this.validate is not fired when I press the button, this.validate is only fired when I write in the inputs. So this.getErrorMessages() is not returning nothing when I trigger onPress event, but it does return a response when I write in inputs.
¿Should it work like that?
NOTE: I'm working with nativebase.
The text was updated successfully, but these errors were encountered: