Summary
In this chapter, we were introduced to the idea that gestures on native platforms make a significant difference compared to mobile web platforms. We started off by looking at the ScrollView
component, and how it makes life much simpler by providing native scrolling behavior for wrapped components.
Next, we spent some time implementing buttons with touch feedback. This is another area that’s tricky to get right on the mobile web. We learned how to use the TouchableOpacity
, TouchableHighlight
, and Pressable API components to do this.
Finally, we implemented a generic Swipeable
component. Swiping is a common mobile pattern, and it allows the user to discover how things work without feeling intimidated.
In the next chapter, we’ll learn how to control animation using React Native.