+ All Categories
Home > Engineering > Build a real app with react native

Build a real app with react native

Date post: 22-Jan-2018
Category:
Upload: john-pham
View: 132 times
Download: 2 times
Share this document with a friend
25
Build mobile app with React Native john@mingle
Transcript
Page 1: Build a real app with react native

Build mobile app with React Nativejohn@mingle

Page 2: Build a real app with react native

Agenda

What is React NativeChallenges when build niche appsDemo: Market AppQ&A

Page 3: Build a real app with react native

React Native

Page 4: Build a real app with react native

React Native

Challenges when build niche apps

● Dynamic UI without lose performances ● App size● Complicated code-base

Page 5: Build a real app with react native

TRIED OUT A LOT (Navtive vs Hybrid)

React Native

Android2012

iOS2013

IONIC 12015

IONIC 22016

React Native2016

Page 6: Build a real app with react native

React Native

IONIC 1 (2015–2016)

● Missing piece of Cordova ● Super fast for prototyping ● UI elements are not native ● Problems with native components● Performance on Android ● Angula

Page 7: Build a real app with react native

React Native

IONIC 2 (2016)

● Component oriented (like RN) ● Add Electron support, Android Material,

Windows UI ● Improved structure and Navigation● Long waiting for stable version, breaking

changes ● Painful debugging ● Performance limitations

Page 8: Build a real app with react native

React Native

REACT NATIVE (2016 and later)

● Native experience● Multi-platform

○ iOS, Android (WUP, Desktop, web) ● Used by AirBNB, Facebook, Instagram, Vogue● Functional programming ● Easy to debug ● Huge community (+/-)

https://goo.gl/QMh3jK

Page 9: Build a real app with react native

React Native

LIVE RELOAD

Page 10: Build a real app with react native

React Native

CODE PUSH

● OTA updates● Hot fixes ● Experimentation● Continuous Deployment

Page 11: Build a real app with react native

React Native

MISCONCEPTIONS

Page 12: Build a real app with react native

React Native

DOES THE JS COMPILE TO NATIVE CODE?

NO

Page 13: Build a real app with react native

React Native

DOES THE JS RUNS IN A WEB VIEW?

NO

Page 14: Build a real app with react native

React Native

What if i want to use the platform’s latest API’s?

Just do it

Page 15: Build a real app with react native

React Native

How does it work

Page 16: Build a real app with react native

React Native

How does it work

Main

JSC

Shadow

Gesture/ Interaction

React Render Diff

Layout

Render

16 ms

Page 17: Build a real app with react native

React Native

REACT JS

● Just is View (Library)● Declarative● Component-Based● Learn Once, Write Anywhere

A Simple Component

Page 18: Build a real app with react native

React Native

Redux

● Evolves the ideas of Flux● Redux is a predictable state container

for JavaScript apps.● It is tiny (2kB, including dependencies).● Reactjs, AngularJS, Swift

Page 19: Build a real app with react native

React Native

HUGE COMMUNITY

● You have to choose components wisely● Find components on JS.coach● Choose by stars, issues, docs, demos, PR● No complete UI framework like Ionic:

○ Native Base ○ Material Kit

● Lot of interesting libraries:○ Lottie, Airbnb Maps

Page 20: Build a real app with react native

React Native

EXAMPLES:

AirBnB Map Lottie

Page 21: Build a real app with react native

React Native

MORE SOURCES TO SEE

● Articles:○ ReactJS x React Native http://bit.ly/2oywqGg○ RN @ Instagram (http://bit.ly/2oVmkf4) ○ iOS dev toolset (http://bit.ly/2oEOc86)

● Newsletter: React Native Newsletter (http://reactnative.cc) ● Platform: Expo (https://expo.io) ● Stack: Ignite (https://github.com/infinitered/ignite) ● Presentation: RN @ Airbnb (http://bit.ly/2oxEzek)

Page 22: Build a real app with react native

Demo

React Native

Page 23: Build a real app with react native

React Native

Market RN

● Marketplace● Stack: ES6,Redux, Native-base, Eslint Reactotron● CI/CD: Fastlane, Bitrise, Hockeyapp

Page 24: Build a real app with react native

React Native

PROPBLEM:

● First time explores● 20* screens● Redux is hard● Android build● Performance

Page 25: Build a real app with react native

Thanks for listeningQ&A


Recommended