Offline-capable, decoupled Drupal 8 with React.js and React Native

Written by Josh Fabean

11. May 2016

Offline capabilities is great, it’s awesome to be able to load your site while on internet then be off internet and it still work. Also using React. See full talk on Drupalcon site.

  • Deploy suite

    • Multiversion
    • Replication
    • Workspace
    • Deploy
    • RELAXed
  • ReactJS

    • tries to make life simple
  • Redux
    • unidirectional flow
      • store
      • componsent
      • reducer
        • only place store is editable
      • action
  • Architecture overview
    • server
      • drupal 8
      • RELAXed
    • browser
      • PouchDB
      • React web app
  • Demo
  • What we learned
    • REALXed + PouchDB
      • powerful combination
      • full DB availalbe in the browser
      • up to 50MB on phone
    • No easy features from drupal
      • everything in the webapp is built from scratch so you lose a lot of what Drupal does for you
    • Separate styling setup
      • Reactjs has it’s own special way of stlying
      • then React Native has even weirder styling
    • Little reusability between web and native apps
    • Distribution ES2015 libraries is still painful
      • very painful
      • can be done, but it’s not easy