Top Banner
React Native overview Marcin Mazurek (@mazurekpro) Front-end developer - Site Base Core team
32

Introduction to React Native - Marcin Mazurek (09.06.2017)

Jan 21, 2018

Download

Software

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Introduction to React Native - Marcin Mazurek (09.06.2017)

React Native overview

Marcin Mazurek (@mazurekpro) Front-end developer - Site Base Core team

Page 2: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 3: Introduction to React Native - Marcin Mazurek (09.06.2017)

What is React?

Page 4: Introduction to React Native - Marcin Mazurek (09.06.2017)

• Library for building web UI in a declarative manner • Built by Facebook and open-sourced in 2013 • 4th most popular repo on GitHub

Page 5: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 6: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 7: Introduction to React Native - Marcin Mazurek (09.06.2017)

So... what is React Native then?

Page 8: Introduction to React Native - Marcin Mazurek (09.06.2017)

• A framework for building cross-platform native mobile apps

• Developed by Facebook and open-sourced in 2015 • 15th most popular repo on Github, ★ 49.3k

Page 9: Introduction to React Native - Marcin Mazurek (09.06.2017)

"Learn once, write anywhere"

Page 10: Introduction to React Native - Marcin Mazurek (09.06.2017)

Is it WebView?

Page 11: Introduction to React Native - Marcin Mazurek (09.06.2017)

https://medium.com/@jiyinyiyong/virtual-dom-is-the-new-ir-67839bcb5c71

Page 12: Introduction to React Native - Marcin Mazurek (09.06.2017)

react-native-windows

Page 13: Introduction to React Native - Marcin Mazurek (09.06.2017)

react-native-macos

Page 14: Introduction to React Native - Marcin Mazurek (09.06.2017)

Demo time

Page 15: Introduction to React Native - Marcin Mazurek (09.06.2017)

Dealing with platform-specific code

Page 16: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 17: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 18: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 19: Introduction to React Native - Marcin Mazurek (09.06.2017)

Limitations

Page 20: Introduction to React Native - Marcin Mazurek (09.06.2017)

CSS• Just "inline" styles (or extracted to an object) • No "C" from CSS - styles are not cascading • Fewer properties, no shorthand notation • No pseudo-elements or media queries • Different defaults (display: flex,

flex-direction: column)

Page 21: Introduction to React Native - Marcin Mazurek (09.06.2017)

Visual components

• Very basic, low-level building blocks (View,

Text, DatePicker, List) • More sophisticated components - available

in external, community-maintained packages

Page 22: Introduction to React Native - Marcin Mazurek (09.06.2017)

APIs

Page 23: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 24: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 25: Introduction to React Native - Marcin Mazurek (09.06.2017)

Who uses React Native?

Page 26: Introduction to React Native - Marcin Mazurek (09.06.2017)

Facebook & Instagram

Page 27: Introduction to React Native - Marcin Mazurek (09.06.2017)

https://facebook.github.io/react-native/showcase.html

Page 28: Introduction to React Native - Marcin Mazurek (09.06.2017)

Is it production-ready?

Page 29: Introduction to React Native - Marcin Mazurek (09.06.2017)
Page 30: Introduction to React Native - Marcin Mazurek (09.06.2017)

Is it production-ready?

Page 31: Introduction to React Native - Marcin Mazurek (09.06.2017)

The future of React Native

https://github.com/facebook/react-native/wiki/Roadmap

Page 32: Introduction to React Native - Marcin Mazurek (09.06.2017)

Thank you!