re-start

write once, run everywhere

Jesús Leganés-Combarro 'piranna'

piranna@gmail.com

May 2018

Who am I?

  • @piranna on Github
  • Freelance developer
  • PhD. candidate at URJC

What's re-start?

re-start

set of pre-configured templates to create React Native projects that can run both on Android, iOS, web, Windows and Electron from a single source code base

re-start

  • previously known as react-everywhere
  • created by Amogh Banta

Platforms

  • Android, iOS & appleTV
  • web
  • Windows 10, Windows 10 Mobile and XBox One
  • Electron

Pros

  • Wider diffusion, several platform for (almost) the effort of just one
  • Stardard React Native
  • Same features and behaviour

Cons

  • Platforms corner cases
  • Different degrees of APIs completioness
  • Native modules outside Android and iOS

Solution

  • Use web as canonical platform
    • Standard components
    • Easier to debug
  • Port to other platforms
    • Android the easiest one
    • iOS = PITA
    • Windows surprisingly easy
      • kudos Microsoft :-)
      • API coverage :-(

demo

Future work

  • Unit tests & Greenkeeper
  • Build Windows binaries on Linux?
  • OSX support
  • React Native in a TTY? :-)

+info

  • https://github.com/react-everywhere/re-start
  • https://medium.com/@piranna/re-start-write-once-run-anywhere-51dacb4b91e0
Made with Slides.com