Join Samer Buna for an in-depth discussion in this video Using TouchableOpacity for press events, part of React Native Essential Training.
- [Instructor] Our next step is to click these numbers,…and start to think about what should happen when we do.…Now, these numbers are so far, presented here,…with just the text element.…And since we're going to click on that text element,…and that click is potentially going to need…the random number value,…since it's going to trigger a computation…of the running sum,…that's our sign that we need a component…to represent every clickable number.…Whenever you have something that you need to click on,…and you need the value related…to that thing that you click on,…it's your sign that you need a component.…
The other sign that we actually we needed a component here,…is that we are rendering six similar things.…They're all random numbers.…They share a mark up, they share style,…and they also now are going to share behavior.…Whenever we click on each of these six,…the behavior is basically the same.…These are our signs that we need a component here.…So let's go ahead and create a component.…The new component mark up is going to be,…
- 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.