oliver shaw github com olliepop oshaw co react native
play

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


  1. Oliver Shaw github.com/Olliepop oshaw.co/react-native/slides.pdf

  2. “Learn once, write anywhere”

  3. No HTML or CSS

  4. 100% JavaScript

  5. What’s behind a React Native app ES6 ● JSX ● Basic React concepts: component lifecycle, state, props ●

  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.”

  7. ScrollView Text “Component that wraps platform ScrollView while A React component for providing integration with touch locking "responder" displaying text. system.” A scrolling container.

  8. Layout & styles Abstraction of CSS provided called StyleSheet ● Implements Flexbox ● Most components have a style property ● Available styles well documented in RN docs ● oblador/react-native-animatable provides declarative transitions ●

  9. Fonts

  10. Navigation JavaScript implementation of the navigation stack ● Trending router aksonov/react-native-router-flux ●

  11. 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 ●

  12. 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 ●

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

  14. Optimising a Cordova app

Recommend


More recommend