---
title: "Making Your React Native Gestures Feel Natural"
description: "Draggable UI in React Native feels more natural when gesture end-handling accounts for release velocity, not just finger position."
url: "https://swe.quest/articles/making-your-react-native-gestures-feel-natural-2f601419df32539e"
canonical: "https://shopify.engineering/making-react-native-gestures-feel-natural"
source: "Shopify Engineering"
published: "2023-01-20"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["react","mobile","frontend"]
---

# Making Your React Native Gestures Feel Natural

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2023-01-20, 5 min read, How-to. Original: [https://shopify.engineering/making-react-native-gestures-feel-natural](https://shopify.engineering/making-react-native-gestures-feel-natural)

## Summary

Draggable UI in React Native feels more natural when gesture end-handling accounts for release velocity, not just finger position. Using the Shop app's bottom Sheet as an example, adding a multiplied \`velocityY\` to the final position lets quick flicks open or close the sheet. Replacing a fixed 600 ms timing animation with \`withSpring\` makes the settle animation respect distance and momentum. Dividing drag distance when pulling past the open position adds rubber-band resistance that signals the sheet can't go further.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [React](https://swe.quest/tags/react.md) (Web & mobile)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- React Native basics ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- gesture handlers
- animation APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

React Native, Reanimated, React Native Gesture Handler, withSpring, Shop app

## Related posts

- [How We Built the Add to Favorite Animation in Shop](https://swe.quest/articles/how-we-built-the-add-to-favorite-animation-in-shop-145e9cee56a5fe21.md): Shopify Engineering · 2022-03-25 · Medium · 7 min read · Mobile, React, Frontend
  Shop's Add to Favorite animation, where a product thumbnail pops in, scales, and drops into a bouncing heart tab-bar icon, is built in React Native with Reanimated by driving the whole sequence from a single shared progress value that steps through 1, 2, 3 and so on, each step with its own duration and easing from the motion spec.
- [Building Custom Animations in the Workflow Builder](https://swe.quest/articles/building-custom-animations-in-the-workflow-builder-94f541be651a6e1e.md): Slack Engineering · 2023-12-05 · Medium · 7 min read · React, Frontend, Product engineering
  Slack's Workflow Builder added drag-and-drop from a new steps sidebar into workflows by moving react-beautiful-dnd's DragDropContext to wrap the whole builder page, with two draggable/droppable lists.
- [Getting Started with React Native Skia](https://swe.quest/articles/getting-started-with-react-native-skia-faaa1b35d50977ac.md): Shopify Engineering · 2023-12-04 · Medium · 10 min read · React, Mobile, Frontend
  React Native Skia (@shopify/react-native-skia) exposes Google's Skia 2D graphics engine to React Native, giving a cartesian canvas with shapes, paths, shaders and image filters that go beyond what View and react-native-svg handle well.
- [Fluid layout customization with Splits](https://swe.quest/articles/fluid-layout-customization-with-splits-32c6c1613a8a91da.md): Replit · 2022-09-28 · Medium · 9 min read · Frontend, React, Data structures, Product engineering
  Replit's Workspace now supports Splits, a tiling layout where tabs, panes and files from the filetree can be dragged onto five hit areas of any pane (header to merge, or four conical-section quadrants to split), plus maximize and float modes.
- [Custom Navigational Transitions in iOS](https://swe.quest/articles/custom-navigational-transitions-in-ios-ad9fd5ca9d18d051.md): Zalando Engineering · 2024-07-03 · Medium · 5 min read · Mobile, Swift, Frontend
  Zalando's iOS app adds a custom zoom-style push transition between backend-driven screens.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
