Dr.B.Muthukumaraswamy. PhD

The Promise made

When porting a React Native app to android 85% of the iOS version was reused

-2015

Yeah, the promise is not "write once, run everywhere". It's 1) write in a familiar way and 2) reuse a substantial amount.

-2015

“Don’t repeat yourself. It’s not only repetitive, it’s redundant, and people have heard it before.”

— Lemony Snicket

Is it True

Yes, with a Caveat

React Web app | React Native iOS and Android 

iOS and Android

Platform module code

Filename suffixes

Architecture Matters

Logic out of Views

Presenters and Dispatchers

Logic Should be Cross platform

Small and modular views

React Web  compile

Separate Modules

npm link

Sharing With Multiple projects

Binaries

Dependency Hell

Architecture Matters

Muthuks@gmail.com

Dr.B.Muthukumaraswmay. PhD

Code sharing

By Muthu Kumar

Code sharing

  • 401