NATIVE MOBILE APP
WITH JAVASCRIPT
PHP Indonesia
March 26st 2015
SONNY LAZUARDI
Frontend Engineer @
@sonnylazuardi
sonnylab.com
github.com/sonnylazuardi
REACT.ID
BACKGROUND
NATIVE MOBILE APP
DEVELOPMENT IS
HARD
No Code
Sharing
Low
Iteration
Speed
Hard To
Scale
https://speakerdeck.com/frantic/react-native-tutorial-nyc-15
WEB APP
DEVELOPMENT
IS EASY
R
HYBRID APP
NATIVE APPSWHY
ARE GREAT?
Complex
Gestures &
Smooth
Animations
Fast,
Responsive
Consistent
With the
platform
https://speakerdeck.com/frantic/react-native-tutorial-nyc-15
REACT NATIVE
JAVASCRIPT IS FAST
THE DOM IS SLOW
DOM
UIKIT
REACT NATIVE
WRITE ONCE
RUN ANYWHERE
REACT NATIVE
LEARN ONCE
WRITE ANYWHERE
REACT
NATIVE
COMPONENT
<div> <View>
Browser DOM
Native
Component
<img> <Image>
<span> <Text>
<ScrollView>
<MapView>
<TabBar>
REACT
NATIVE
STYLING
REACT
NATIVE
SETUP
• Requirements
• OSX
• Node 4.0 or newer
• Watchman
• Installing React Native CLI
npm install –g react-native-cli
• Starting React Native Project
react-native init ProjectName
ANDROID
SETUP
• Install JDK
• Install Android SDK
brew install android-sdk
• Add Android SDK path to your
~/.bashrc, ~/.zshrc
export
ANDROID_HOME=/usr/local/opt/android-
sdk
Deploy code updates
directly to users
No more waiting
App store approval
FAST ITERATION
LIVE DEMO
https://github.com/sonnylazuardi/phpindonesia-react-native
REACT.ID/PHPINDONESIA

Sony lazuardi native mobile app with javascript