Best way to share code between iOS and Android
<p>I develop an app for both iOS and Android, and I'm loon'ing for the best way to share code between this two platforms.</p>

<p>What I would like to do is creating all the View (UI part) in native but share the code for the logic (controller + model).</p>

<p>With all I found, 3 things seems to be quite good :</p>

<p>1) C++ --> Build library file Using c++ For the logic so I'll be able To use the .dll files in the 2 platforms</p>

<p>2) Azure mobile apps services. Is it possible to habe all the logic in a webservice? The issue is that if I dont have acces to internet, my app will be unaivalable, right?</p>

<p>3) I hear a lot about React native used by Facebook, but it seems to be used to create the UI, but I prever create it in native. Can I use react only for logic?</p>