Join Samer Buna for an in-depth discussion in this video Fetching more API data for a view, part of React Native Essential Training.
- [Narrator] We wired the OnPress event for every deal…and now, we can go to a deal detail view.…It's now time to fetch the extra details from the server.…We're going to need another ajax function.…In ajax.js, just like the fetchInitialDeals function,…we now need another function.…We'll call this function fetchDealDetail…and this function is going to need…the dealId, cause that's how we're going to use the API.…
We need the dealId to ask the API server for information…on one deal, so the code here is exactly the same…except that we want to do / here and add…the dealId and this should work…to give us information on a single deal.…By the way, I don't need these to be let variables.…I'm going to change them all to just const.…Whenever you can use const, you should.…There's actually an ESlint rule for that,…so if I undo this to let and go to my eslint file,…the rule is to prefer const and we'll do that as an error,…so with this rule, in this ajax file,…it's going to tell you use const instead of let.…
This is simply perfect.…
- 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.