React Native: Using lodash debounce
<p>I'm playing around with React Native and lodash's debounce. </p>

<p>Using the following code only make it work like a delay and not a debounce.</p>

<pre><code>&lt;Input
 onChangeText={(text) =&gt; {
  _.debounce(()=&gt; console.log("debouncing"), 2000)()
 }
/&gt;
</code></pre>

<p>I want the console to log debounce only once if I enter an input like "foo". Right now it logs "debounce" 3 times.</p>