Skip to Main Content
React Projects
book

React Projects

by Roy Derks
December 2019
Intermediate to advanced content levelIntermediate to advanced
474 pages
10h 3m
English
Packt Publishing
Content preview from React Projects

Handling tap gestures

The first gesture we will implement is a tap gesture, which will be added to the Slot component, to give the user more feedback on their actions. Instead of filling the slot when the user taps it, the user will already receive some feedback when the tap event is started and receive feedback when the event is completed. Here, we'll use the TouchableWithoutFeedback element from react-native-gesture-handler, which runs in the native thread, instead of the TouchableWithoutFeedback element from react-native, which uses the gesture responder system. Replacing the react-native component with the one from react-native-gesture-handler can be done by following these steps:

  1. TouchableWithoutFeedback can be imported from react-native-gesture-handler ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Projects - Second Edition

React Projects - Second Edition

Roy Derks
Test-Driven React

Test-Driven React

Trevor Burnham

Publisher Resources

ISBN: 9781789954937Supplemental Content