Component - Form validation patterns
This React Native component shows a simple form with two fields: email and password. It checks if the email looks like a real email and if the password is long enough. When you press the submit button, it shows errors if the inputs are wrong or a success message if all is good.