React Native & Rails, A Single Codebase for Web & Mobile
summary
Claim: a single React codebase can share the vast majority of business logic between web, iOS and Android so adding a native platform costs roughly +10% effort per platform. Stack specifics: Rails JSON API, React DOM + React Native, router, Redux state, and Redux Saga for async side effects; Ignite generator bootstraps projects. A sample geologger (web + iOS) is open source and works. Watch for .babelrc caching bugs on native packager and always run it with --resetCache after changes.
AI-written summary · about
chapters (5)
- 0:00Start
- 7:23Typical React Stack
- 12:45Side Effects Asynchronous Stuff
- 22:38Restructure
- 25:54Example Project
related talks
59mOne Codebase to Rule Them All - Using React Native Everywhere
28mCross-Platform React
30mJesse Weigel - One Codebase to Rule Them All - Using React Native Everywhere
34mMonorepo: React Web & React Native
29mOrganizing Code for Cross-Platform Web and Mobile Development
41mReact Native - A native love story
25mGoing Native
53mTwo platforms, one codebase: Cross-platform React and React Native app at Sportsbet
