Gestures
We use gestures to support user interactions that are more complex than pressing a button, e.g. swiping, dragging, and pinching.
There are 2 common approaches:
PanResponder
- The built-in gesture APIreact-native-gesture-hander
- A library that bridges built-in native gesture handling code
Let's look at each of these in more detail.
Want to learn React Native in-depth?
If you like React Native Express, you'll love my new book, Fullstack React Native: The complete guide to React Native! Throughout the book, we'll build 7 full apps, covering complex topics like navigation, gestures, and native modules. We don't assume any knowledge of React or newer JavaScript language features, so you can dive right in regardless of your experience level. The book comes in PDF
, EPUB
and MOBI
formats.