title: How to avoid calling a function onLongPress of Pressable if user is scrolling?
body: <p>I am using Pressable on a chat app where user can press for 300ms to open a modal of some options such as emoijs and reply option, but when user is scrolling it also triggers the modal. How can I stop it?</p>
  <pre><code>  &lt;Pressable
       onPress={() =&gt; console.log('pressed')}
       delayLongPress={300}
       onLongPress={() =&gt; this.setModalReplyMsgVisible(true, item)}
    &gt;
       &lt;Text&gt;{item.msg}&lt;/Text&gt;
    &lt;/Pressable&gt;
  </code></pre>
  <p>Is there a direct way of dealing with this issue or should I implement a &quot;hackish&quot; solution to fix it?</p>