Generally, this is how Formik's tag is used:
<ErrorMessage name="email" render={(msg) => (<Text style={styles.errorText}> {msg}</Text> )} />
Is there any way to console.log and see the error message from inside it? I tried making a separate function which does the printing but calling it instead of doesn't work. Do I have an alternative?