Pon
Teerasej Jiraphatchandej
@teerasej
facebook.com/nextflow
www.nextflow.in.th/react-native
What? Why? How?
www.nextflow.in.th/react-native
What?
www.nextflow.in.th/react-native
? ?
www.nextflow.in.th/react-native
www.nextflow.in.th/react-native
To survive, you need to
understand Framework’s Nature
- Pon
www.nextflow.in.th/react-native
React
www.nextflow.in.th/react-native
www.nextflow.in.th/react-native
UI
(View in MVC)
www.nextflow.in.th/react-native
render UI
DOM
(Web)
JavaScript
update UI
DOM
(Web)
Virtual DOMJavaScript
state, properties update UI
www.nextflow.in.th/react-native
React Native
www.nextflow.in.th/react-native
DOM
(Web)
Virtual DOMJavaScript
state, properties update UI
iOS UI
React NativeJavaScript Android UI
… UI
state, properties update UI
www.nextflow.in.th/react-native
Example Component
iOS
UIView
React
<View>
Web
<div>
iOS UI
Virtual DOMJavaScript Android UI
… UI
state, properties update UI
www.nextflow.in.th/react-native
Why?
www.nextflow.in.th/react-native
User needs app on
…
www.nextflow.in.th/react-native
User needs app on
everything.
www.nextflow.in.th/react-native
www.nextflow.in.th/react-native
Web Developer
www.nextflow.in.th/react-native
www.nextflow.in.th/react-native
Advantages
• Native performance in web-idea mobile
application
• Good for Web Developer, especially React
• Support web idea (ex. Live reload)
• Component-based, easy to Reuse.
• Support Native API
www.nextflow.in.th/react-native
Disadvantage
• Still young
• iOS, March 2015
• Android, September 2015
www.nextflow.in.th/react-native
How?
www.nextflow.in.th/react-native
Setup
www.nextflow.in.th/react-native
JavaScript side
• Node JS
• react-native
• watchman
• flow
www.nextflow.in.th/react-native
iOS side
• Xcode
• iOS Simulator
www.nextflow.in.th/react-native
Android Side
• Android SDK
• Android Emulator
• Genymotion
www.nextflow.in.th/react-native
Debugging
www.nextflow.in.th/react-native
React Developer tools
www.nextflow.in.th/react-native
Syntax
www.nextflow.in.th/react-native
Syntax
• JavaScript
• ES6
• JSX
www.nextflow.in.th/react-native
Demo Time
www.nextflow.in.th/react-native
React Native
• Web controls Mobile App’s UI.
• Native Performance
• Code in JavaScript ES6 & JSX
• integrate with Native UI Component
.NET
www.nextflow.in.th/react-native
React Native
What? Why? How?
facebook.com/nextflow

React native - What, Why, How?