title: Handle formik form outside of formik component
body: <p>I have a <code>formik</code> form as follow. I am able to submit the form inside formik component. But how could i submit it outside of formik component (inside footer button for this example).</p>
  
  <p>Formik url: <a href="https://jaredpalmer.com/formik/docs/guides/react-native" rel="nofollow noreferrer">Click here</a></p>
  
  <p>Particulary, how could i access this values <code>handleChange, values, handleSubmit, errors,isValid,touched, handleBlur, isSubmitting,</code> outside of <code>Formik</code> component.</p>
  
  <p>I am doing it in <code>react-native</code> but i guess concept of react would help, particularly with the usage of <code>useRef</code> etc. Found few examples online using ref but none of it work.</p>
  
  <pre><code>&lt;View&gt;
      &lt;Formik
          onSubmit={async values =&gt; {
              this.handleSubmit(values);
              await new Promise(resolve =&gt; setTimeout(resolve, 1000));
              console.warn(values);
          }}
          validationSchema={validationSchema}&gt;
          {({
          handleChange,
          values,
          handleSubmit,
          errors,
          isValid,
          touched,
          handleBlur,
          isSubmitting,
          }) =&gt; (
          &lt;View&gt;
              &lt;Form&gt;
                  &lt;Text&gt;First Name&lt;/Text&gt;
                  &lt;TextInput
                      name="first_name"
                      value={values.first_name}
                      onChangeText={handleChange('first_name')}
                  /&gt;
                  {errors.first_name ? (
                  &lt;Text&gt;{errors.first_name}&lt;/Text&gt;/&gt;
                  ) : (
                      &lt;&gt;&lt;/&gt;
                  )}
                  &lt;Button onPress={handleSubmit}&gt;
                      &lt;Text&gt;Submit&lt;/Text&gt;
                  &lt;/Button&gt;
              &lt;/Form&gt;
          &lt;/View&gt;
          )}
      &lt;/Formik&gt;
      &lt;Footer&gt;
          &lt;Button&gt;Submit&lt;/Button&gt;
      &lt;/Footer&gt;
  &lt;/View&gt;
  </code></pre>