title: react native - nativeEvent property?
body: <p>So im trying to wrap my head around react native and it does not look difficult.</p>
  
  <p>My question is straight forward, <strong>what is the "e" object how do I use its properties such as "e.nativeEvent" and "e.nativeEvent.text"</strong>, and in what situations? </p>
  
  <p>I stumbled upon this object when I was testing <strong>TextInput's</strong> <strong>onChangeText</strong> and <strong>onBlur</strong> props. </p>
  
  <p>As you can see below, I am able to pass an argument parameter called "value" in the <strong>onChangeText</strong> prop, to the callback handler. <strong>BUT</strong> when I tried to do the same with the <strong>onBlur</strong>, I ran into issues ( and I checked the documentation which did not mention anything about an argument being passed to the callback function handler, unlike the <strong>onChangeText</strong>).</p>
  
  <p>So I found this <a href="https://stackoverflow.com/questions/39106633/how-do-i-get-the-value-in-textinput-when-onblur-is-called">question</a>, which helped me figure out how to access the data in TextInput using the e.eventNative.text property.</p>
  
  <pre><code>  render(){
  return(
    &lt;View&gt;
    &lt;Text&gt;indent&lt;/Text&gt;
    &lt;Text&gt;indent&lt;/Text&gt;
  
      &lt;TextInput
        style={{height:60, backgroundColor: "#ededed"}} // must define a height for T.I in iOS
        placeholder="Enter Text"
        value={this.state.textValue}
        onChangeText={(value) =&gt; this.onChangeText(value)}
      /&gt;
      &lt;Text&gt;{this.state.textValue}&lt;/Text&gt;
  
      {/* on submit editing, will find the callback function to transfer text
       when submitting button is pressed */}
      &lt;TextInput
      style={{height:60, backgroundColor: "skyblue"}}
      placeholder="Enter Text"
      onBlur={(value) =&gt; this.onSubmit(value.nativeEvent.text)}
  
      /&gt;
      &lt;Text&gt;{this.state.textSubmitted}&lt;/Text&gt;
    &lt;/View&gt;
  );
  </code></pre>
  
  <p>}
  }</p>