∠
React Native: The Good Parts
Architect at Modus Create
Author of React Native Cookbook
Working with React Native >1.5 yrs
Stan Bershadskiy
React Native
A framework for building native mobile apps using JavaScript
REACT NATIVE
REACT
Declarative goodness
BRIDGE
Communicate between JavaScript and Native threads
NATIVE UI SDK
Render Native UI elements on the main thread
The Good Parts
Layout System
Flexbox and Absolute positioned layout system written in C++ to achieve maximum
performance. Similar to web standards.
YOGA IS GOOD FOR YOU
Modus Create moduscreate.com
FLEXBOX EXAMPLE
Animated API
Create Animated Values of a type (spring, decay, timing) that wrap components. The values can
be composed in parallel, sequence or other variations. Animations can be executed on the
native thread for increased performance.*
60 FPS GOODNESS
Modus Create moduscreate.com
ANIMATED API EXAMPLES
REACT-NATIVE-FOLDVIEW
https://github.com/jmurzy/react-native-foldview
TWITTER EXPLODING HEARTS
http://bit.ly/2ckTbI1
Native Module Bridge
Easily expose native functionality and native UI components to be used by React Native.
NATIVE MADE EASY
Modus Create moduscreate.com
NATIVE MODULE EXAMPLES
FINGERPRINT AUTHENTICATION MEDIA PLAYER PLAYBACK
It’s just JavaScript
All your business logic can be implemented in JavaScript. React Native’s core dependency is
React. You can leverage any npm module that does not have a DOM dependency.
ANSWER IS PROBABLY ON STACK OVERFLOW
Modus Create moduscreate.com
COMMONLY USED JS MODULES
REDUX
Magical state container
LODASH
Ruining looping 1 ‘_’ at a time
MOMENT
Simple date manipulation
Community
Facebook and the Community as a whole work hand in hand to further the development of
React Native. >50% commits from community.
EVERYONE IS AWESOME
Modus Create moduscreate.com
COMMUNITY CONTRIBUTIONS
EXPO(NENT)
App Development platform
REACT NAVIGATION
Navigation made simple (finally!)
RNPM
Simple linking of native modules
The Not-So-Good Parts
They’re not that bad, I promise.
Upgrading
“Maybe RN should be called ReactNativeExperimental” - Jay Garcia
HOPE YOU LIKE READING DIFFS
Android
Dealing with Native Android code is no fun. Device and version fragmentation cripples the
development experience.
NOT FACEBOOK’S FAULT
Development Mode
Apps work much slower in development mode, especially Android.
TASTES LIKE A SWITCH CARTRIDGE
Building your next app
Create React Native App
Simple platform-independent way to get up and running.
LIKE CREATE-REACT-APP JUST WITH EXPO
“STANDARD” WAY
XCODE ANDROID STUDIO JAVASCRIPT IDE
Thank you!
Stan Bershadskiy
@stan229
stan@moduscreate.com

React native the good parts - react boston lightning talk