web and native: bridging the gap
TRANSCRIPT
BRIDGING THE GAPWEB AND NATIVE
MIKE NORTHJAZOON, FALL 2016
@MICHAELLNORTHgithub.com/mike-north
@MICHAELLNORTH
GOING BEYOND WEB-BASED TOOLS
USEFUL NATIVE FUNCTIONALITY
▸ Data
▸ Camera
▸ Fingerprint Sensor
▸ Media library
▸ Network information
▸ Haptics & Vibration
▸ Storage
▸ Battery
▸ Payment
▸ Location++
▸ Passwords
▸ Encryption
▸ Touch
▸ Wearables
▸ Motion
▸ Notifications
▸ Deep URLs
WHY USE CORDOVA
▸ Use all of the great new stuff for the web
▸ PWA, css, layouts, pouchdb, d3, etc…
▸ Embed web content
▸ Rich and mature plugin ecosystem
@MICHAELLNORTH
CORDOVA: TL;DR▸ Contain native specifics and complexity in plugins
▸ One class to implement on native side, with callback-style control flow
▸ Not much structure, not many constraints
▸ plugins on window.*
WHY REACT NATIVE
▸ Write JavaScript, tapping into the rich JS ecosystem
▸ React is popular, and widely used & understood
▸ Native views
▸ Web-style developer iteration
▸ Easy to get started
@MICHAELLNORTH
REACT-NATIVE: TL;DR▸ Native views
▸ Easy to get started, Approachable for react devs
▸ More working for you on the client side than raw cordova
▸ Quick and easy in iOS land, not as much in Java
▸ Reflection —> promise vs callback
github.com/axemclion/react-native-cordova-plugin
THANKSI’m available for react-native, JavaScript
and rails/elixir training & [email protected]
@MICHAELLNORTH