How to validate TextInput values in react native? : <p>for example, While entering an email in the TextInput, it should validate and display the error message. where the entered email is valid or not </p>

<p><a href="https://i.stack.imgur.com/bVIha.png"><img src="https://i.stack.imgur.com/bVIha.png" alt="enter image description here"></a>  </p>
