Share Your Application Logic on Web and Mobile
Relaying almost entirely on existing Web technologies and tools, React Native has already proven its power.
Lauri Hahne has now crossed the bridge beetween Web and Mobile showing a proof of concept app that shares application logic beetween the two.
We can only imagine similar approaches being applied when the upcoming Android version of React Native is being released.
Sharing your code
I developed a proof of concept application that downloads train timetable data from a public rest api and displays it on your phone. The user interface is pictured below. In addition, I developed a simple React based web site that uses the same application logic to fetch timetable data. This demonstrates that it is indeed viable to share common business logic between the browser and a React Native application. The full example can be found at https://github.com/lhahne/trains.
trains app on GitHub