title: React Native dynamically filled Value of InputText returns empty on form Submit
body: <p>I'm new to React Native mobile app, I have a profile page with few Input Text fields. I am setting the field values to the current value in the DataBase. All the fields populate with the latest values as required.</p>
  <p>The problem is on submitting the form the data returns empty values of the form fields which are dynamically populated. If the form Field  is empty and the user manually enters a value. That value is returns on submission.</p>
  <p>The Code is below  <strong>(Updated with a shorter code )</strong></p>
  <pre><code>import React,{useState} from 'react'
  import { StyleSheet, Text, View,TextInput,Button, SafeAreaView } from 'react-native'
  import { Formik } from &quot;formik&quot;;
  
  
    
  export default function App() {
    
    const [theEmail, setTheEmail] = useState()
    const [theFlag, setTheFlag] = useState(true)    
    
    if(theFlag)
    {
        setTheFlag(false)
        setTheEmail(&quot;test@test.com&quot;)
        
    }
  
  
    return (
        &lt;SafeAreaView&gt;
                &lt;Formik
                    initialValues={{ email: '' }}
                    onSubmit={values =&gt; console.log(values)}
                &gt;
                    {({ handleChange, handleBlur, handleSubmit, values }) =&gt; (
                        &lt;View&gt;
                            &lt;TextInput style={styles.textInput}
                            onChangeText={handleChange('email')}
                            onBlur={handleBlur('email')}
                            value={theEmail}
                            onChangeText = {(text)=&gt;setTheEmail(text)}
                            /&gt;
                            &lt;Button onPress={handleSubmit} title=&quot;Submit&quot; /&gt;
                        &lt;/View&gt;
                    )}
        &lt;/Formik&gt;
  
  
        &lt;/SafeAreaView&gt;
    )
  }
  
  const styles = StyleSheet.create({
    textInput : {
        borderColor : &quot;red&quot;,
        borderWidth : 1,
        margin : 20,
        height : 50,
    }
  })
  
  
  </code></pre>
  <p>Appreciate the help to solve this issue.</p>