Oliver Shaw github.com/Olliepop oshaw.co/react-native/slides.pdf - - PowerPoint PPT Presentation

oliver shaw github com olliepop oshaw co react native
SMART_READER_LITE
LIVE PREVIEW

Oliver Shaw github.com/Olliepop oshaw.co/react-native/slides.pdf - - PowerPoint PPT Presentation

Oliver Shaw github.com/Olliepop oshaw.co/react-native/slides.pdf Learn once, write anywhere No HTML or CSS 100% JavaScript Whats behind a React Native app ES6 JSX Basic React concepts: component lifecycle, state, props


slide-1
SLIDE 1

Oliver Shaw github.com/Olliepop

  • shaw.co/react-native/slides.pdf
slide-2
SLIDE 2

“Learn once, write anywhere”

slide-3
SLIDE 3

No HTML or CSS

slide-4
SLIDE 4

100% JavaScript

slide-5
SLIDE 5

What’s behind a React Native app

  • ES6
  • JSX
  • Basic React concepts: component lifecycle, state, props
slide-6
SLIDE 6

“React Native uses the same fundamental UI building blocks as regular iOS and Android apps. You just put those building blocks together using JavaScript and React.”

slide-7
SLIDE 7

ScrollView Text

“Component that wraps platform ScrollView while providing integration with touch locking "responder" system.”

A scrolling container. A React component for displaying text.

slide-8
SLIDE 8

Layout & styles

  • Abstraction of CSS provided called StyleSheet
  • Implements Flexbox
  • Most components have a style property
  • Available styles well documented in RN docs
  • blador/react-native-animatable provides declarative transitions
slide-9
SLIDE 9
slide-10
SLIDE 10

Fonts

slide-11
SLIDE 11
slide-12
SLIDE 12

Navigation

  • JavaScript implementation of the navigation stack
  • Trending router aksonov/react-native-router-flux
slide-13
SLIDE 13

Module: react-native-router-flux (RNRF)

  • BYO reducer -- you aren’t locked into flux
  • Comes with customisable tab bar & nav bar
  • Maintains a fork of the latest stable Navigator component
slide-14
SLIDE 14

Storage & persistence

  • Native key-value storage component AsyncStorage
  • Android uses RocksDB or SQLite
  • AsyncStorage plugs into rt2zz/redux-persist
  • File system access provided by johanneslumpe/react-native-fs
slide-15
SLIDE 15

“A library of mobile-optimized HTML, CSS and JS components and tools for building highly interactive native and progressive web apps”

slide-16
SLIDE 16

Optimising a Cordova app