title: Handling formik form when validation error occurs
body: <p>I have a formik form in react native code as follow.
  Full runnable link can be view at:
  <a href="https://snack.expo.io/HJMkbEQy8" rel="noreferrer">here</a></p>
  
  <p><strong>Current behaviour:</strong> <br>
  Validation can only be done with <code>handleSubmit</code>, with cannot be use for handle further action. Note than <code>onSubmit</code> will not be trigger if <code>handleSubmit</code> detects there is any validation error.</p>
  
  <pre><code> &lt;Button onPress={handleSubmit} style={styles.button}&gt;
       Submit
   &lt;/Button&gt;
  </code></pre>
  
  <p><strong>Expected solution:</strong> <br>
  A lifecycle event called when validation fails after an attempted submit (eg: <code>onValidationError</code>), where i can access all the input validation error props for further action.</p>
  
  <p>Eg: I would like to handle something (like pop up an alert or scroll to first error message when validation fail)</p>
  
  <p>The code is expected to be something like follow, or any other way of doing it can also be accepted. As long as i can handle event when validation error occurs.</p>
  
  <pre><code> &lt;Formik
      onSubmit={values =&gt; {
         alert(JSON.stringify(values, null, 2));
         Keyboard.dismiss();
      }}
      onValidationError={errorValues =&gt; {
         // any action here
         // note that onValidationError is not a built in function
         // but it would be best if it can be achieved this way
         // else any other equivalent solution also can be accepted
      }}
      validationSchema={validationSchema}&gt;
  </code></pre>
  
  <p><strong>What have tried?</strong><br>
  I have tried to integrated 2 solution here. But failed to get it work.<br>
  <a href="https://github.com/jaredpalmer/formik/issues/1019" rel="noreferrer">https://github.com/jaredpalmer/formik/issues/1019</a> <br>
  <a href="https://github.com/jaredpalmer/formik/issues/1484" rel="noreferrer">https://github.com/jaredpalmer/formik/issues/1484</a><br></p>