title: TypeError undefined is not an object (evaluating 'value.replace')
body: <p>The strange thing is that it works on my web browser when I run it on Firefox using the Metro Bundler, but when I try to do it on an Android phone I get the error: TypeError undefined is not an object (evaluating 'value.replace')</p>
  
  <pre><code>const setMyString = (value) =&gt; {
      let string = value.replace(/\D/g,' ');
      setString(string);
  }
  </code></pre>
  
  <p>It seems that this function sets the error.</p>
  
  <pre><code>const [myString, setString] = useState('');
  
  &lt;Input   
      value={myString}
      onChange={e =&gt; setMyString(e.target.value)} /&gt;
  </code></pre>
  
  <p>Here's the rest of the relevant code. The error happens when I use the virtual keyboard and enter a number. </p>