title: How to make react native alerts and not error messages when validation is bad
body: <p>I'm working on a react-native form whith formik and i have a problem with validation,
  I want the validation to be send to an <code>Alert.alert(errorMessage)</code> and not on a text bot like this <code>&lt;Text&gt;{errorMessage}&lt;/Text&gt;</code>.
  This is my actual form :</p>
  
  <pre><code>import { View, Text, StyleSheet } from "react-native";
  import { Formik } from "formik";
  import yup from "yup";
  import SubmitButton from "../buttons/Submit";
  import LoginInput from "../inputs/Login";
  
  interface values {
    email: string;
    password: string;
  }
  
  interface props {
    onSubmit: (string: values) =&gt; void;
    validate: (values: values) =&gt; void;
    isFetching: boolean;
  }
  
  const styles = StyleSheet.create({
    container: {
      marginTop: 39,
      padding: 20,
      justifyContent: "center",
      alignItems: "center"
    }
  });
  
  export default class AuthenticationForm extends Component&lt;props, {}&gt; {
    render() {
      const { onSubmit, validate, isFetching } = this.props;
      return (
        &lt;View style={styles.container}&gt;
          &lt;Formik
            initialValues={{ email: "", password: "" }}
            onSubmit={onSubmit}
            validationSchema={yup.object().shape({
              email: yup
                .string()
                .email()
                .required(),
              password: yup.string().required()
            })}
          &gt;
            {(props: any) =&gt; (
              &lt;View style={{ marginTop: 75 }}&gt;
                &lt;LoginInput
                  autoCapitalize="none"
                  returnKeyType="done"
                  placeholder=""
                  value={props.values.email}
                  onChangeText={props.handleChange("email")}
                  secureTextEntry={false}
                  autoCorrect={false}
                  topText={"email :"}
                  errorMessage={props.errors.email}
                /&gt;
  
                &lt;LoginInput
                  returnKeyType="done"
                  autoCapitalize="none"
                  secureTextEntry
                  placeholder=""
                  autoCorrect={false}
                  value={props.values.password}
                  onChangeText={props.handleChange("password")}
                  topText={"password :"}
                /&gt;
                &lt;SubmitButton onPress={props.handleSubmit} loading={isFetching} /&gt;
              &lt;/View&gt;
            )}
          &lt;/Formik&gt;
        &lt;/View&gt;
      );
    }
  }
  </code></pre>
  
  <p>If you know of any other lib that allows you to do form validation and that are compactible with Alert.alert I am a ready.</p>
  
  <p>Thank you for you help !</p>