Watch Tom Duffy add an event handler to the simple React Native app.
- [Instructor] Our next task is to create…the say hello function.…Let's add the say hello function to the component.…I'll do that right beneath the state variable.…Say hello is a function…which maps to something we'll do, a function.…So inside the say hello function,…let's create a variable to hold our message.…This is a local variable.…
It's not the same as the one that's stored in the state.…And I'm going to use a string literal plus…this.state.fullName.…Now, the local variable, I'll just take that…and assign it to the one stored in the state.…So that's this.state.msg equals…the local variable, message.…
The last thing to do inside the view…
- Hybrid vs. native cross-platform apps
- Choosing an editor
- Building a Cordova app
- Building an Ionic app
- Buildin an app with the Create React Native App
- Building an app with the React Native CLI
- Building a Titanium app
- Building a Xamarin app
Skill Level Beginner
Ionic 3.0 for Mobile App Developerswith Sani Yusuf5h 43m Intermediate
React Native: Building Mobile Appswith Steven Emmerich2h 32m Intermediate
1. Intro to Cross-Platform Development
4. React Native
- 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.