Join Samer Buna for an in-depth discussion in this video The PanResponder API, part of React Native Essential Training.
- [Instructor] React Native has a built-in…gesture recognizing system called the PanResponder.…We can use it to detect when the screen…is being touched and released, and we can read…the accumulated distance between the first touch…and the release.…So it's not just when the screen is touched,…but also where the touch gesture is going…and where it ended.…So we can easily implement features…like drag and drop or swipe left and right with this API.…We can also recognize multi-touch features…like pinch, zoom or shrink.…
Our example will be a simple one.…We want to recognize the swipe left and right gesture…and do something when they are detected.…One thing to understand is that the PanResponder itself…does not make any changes to the UI.…It is used to only detect fingers on screen movements.…This is why the PanResponder is usually used…with the Animated API, so that we can do…actual changes to the UI in response to…detected touch gestures.…
In our example, if we detect a swipe gesture,…we want to animate one image out of the screen…
- Hello React Native on iOS and Android
- Styling React Native components
- Platform APIs
- Building a simple game app and a data-driven app
- Using the Fetch API
- Creating an animation loop
- Testing on Android
- Changing an app logo and a splash screen
- Using TestFlight with internal testers
Skill Level Intermediate
1. Getting Started
2. React Native Fundamentals
Hello React Native on iOS5m 42s
3. Building a Simple Game App
4. Building a Data-driven App
5. Animation and Gesture Control
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.