Join Samer Buna for an in-depth discussion in this video Generating the random play numbers, part of React Native Essential Training.
- [Instructor] We have a target sum.…It's now time to generate the actual numbers…that the player is going to use to sum up to the target.…So before we do that, let me talk about my decision…to keep this target div in this top-level game component…and not create a child component…just to represent this target div.…This is definitely a style preference.…If you want this target div to be contained,…then you want the style of this target div to be contained…then a child component to represent…this target div might be worth it.…
However, a child component to represent this target div…also introduces some complexities,…so it's just something that you need to decide on.…I decided to keep this target text…in this game component for many reasons,…but one of them is that it's the only text…of this type, the target text,…and the other reason is that a lot of the calculations…in this game component are going to depend…on the value of this target,…so introducing the child component here…is going to introduce some data flow complexities in game,…
- 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.