Summary
In this chapter, you were introduced to the idea that gestures on native platforms are the big difference maker when compared to mobile web platforms. We started off by looking at the ScrollView
component, and how it makes life much simpler for us 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. You learned how to use the TouchableOpacity
and TouchableHighlight
components.
Finally, you implemented a generic Swipeable
component. Swiping is a common mobile pattern, and it allows for the user to discover how things work without feeling intimidated. In the next chapter, you'll learn how to control image display using React Native.