0
Good afternoon, I am with a project in which I have to store a data of a Textinput and validate if it is empty or if it has any value.
I’ve tried using setState in input and calling a function that validates, however it seems to me the value of the input is not being stored (as if setState is not working).
I’m starting now with React-Native, I hope it was possible to understand my question.
Thank you in advance.
constructor(props){
super(props);
this.state = {
name: '',
}
}
<Nome /> ``` Aqui é onde o usuario digita o nome e seria armazenado na propriedade "name: " ```