title: How to update useState into TextInput
body: <p>I have a simple <code>&lt;TextInput&gt;</code> in React Native and i want to print some text when value change. Its working after second character entered, but not, when user press just one char.
  I try using functions and even with onChange and take from e.target.value but allways are missing one character at "search" state.</p>
  
  <pre><code>import React, { useState } from 'react';
  import { TextInput, View, Text } from 'react-native';
  
  const App = () =&gt; {
    const [search, setSearch] = useState('');
    const [searching, setSearching] = useState(false); 
    return(
      &lt;View&gt;
        &lt;TextInput 
          onChangeText={(value) =&gt; {
            setSearch(value)
            setSearching(search=='' ? false : true)
          }}
          value = { search }
        /&gt;
        {
          searching ?
          (
            &lt;Text&gt;Searching&lt;/Text&gt;
          ) : (
            &lt;Text&gt;No searching&lt;/Text&gt;
          )
        }
      &lt;/View&gt;
    );
  } 
  
  export default App
  </code></pre>
  
  <p>I expect to show "Searching" when TextBox value are not empty.</p>