<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: reidterror</title>
    <description>The latest articles on DEV Community by reidterror (@reidterror).</description>
    <link>https://dev.to/reidterror</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F164688%2F9b93f76f-669a-4b3f-be4d-c6b194cae893.png</url>
      <title>DEV Community: reidterror</title>
      <link>https://dev.to/reidterror</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/reidterror"/>
    <language>en</language>
    <item>
      <title>How to limit the vertical space that the user can drag an element in, using react-native-gesture-handler?</title>
      <dc:creator>reidterror</dc:creator>
      <pubDate>Mon, 06 May 2019 22:08:57 +0000</pubDate>
      <link>https://dev.to/reidterror/how-to-limit-the-vertical-space-that-the-user-can-drag-an-element-in-using-react-native-gesture-handler-44bl</link>
      <guid>https://dev.to/reidterror/how-to-limit-the-vertical-space-that-the-user-can-drag-an-element-in-using-react-native-gesture-handler-44bl</guid>
      <description>&lt;p&gt;I'm trying to build a sliding menu from the bottom of the screen. The main problem I'm facing is setting a limit to how far up the user can drag the menu.&lt;/p&gt;

&lt;p&gt;I've looked through examples on the react-native-gesture-handler github. Tried to fiddle around with &lt;a href="https://snack.expo.io/SkjAjkkhE"&gt;the bouncing example&lt;/a&gt;. But still couldn't figure out exactly what I need to do to set a limit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://snack.expo.io/r1gH1VCjN"&gt;Current Setup. (Snack Link)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;which gives this result:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0hjEnaJr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/S3qZo2k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0hjEnaJr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/S3qZo2k.png" alt="Collapsed menu"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;when i swipe up i get:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--zCmwbqBs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/t0M8ruJ.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--zCmwbqBs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/t0M8ruJ.png" alt="Expanded menu, but out of bounds"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and when i swipe all the way down, the menu goes out of view:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--fcPt5PpV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/ewHkeVt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--fcPt5PpV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/ewHkeVt.png" alt="Collapsed menu, but out of bounds"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My goal is to make the menu to pop up to It's full size once swiped up and then shrink back down to just the title when swiped down.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--Y94z2CnV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/ldKZpgC.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y94z2CnV--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/ldKZpgC.png" alt="Swiping up should end up like this: Expected result when swiping up"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0hjEnaJr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/S3qZo2k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0hjEnaJr--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/S3qZo2k.png" alt="Swiping down should end up like this: Expected result when swiping down"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you in advance for any help you might provide, it'll be really appreciated.&lt;/p&gt;

</description>
      <category>help</category>
      <category>reactnative</category>
      <category>react</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
