I am a newbie with cross platform mobile development tools like PhoneGap and Xamarin so please excuse me if this question appears to be stupid.
My app would target Android, iOS, Windows Phone and Windows 8. I would want to maximize the amount of code I can reuse across different platforms. Therefore, I would prefer using HTML5, CSS and JavaScript for the UI layer (PhoneGap). However, I would prefer using C# instead of JavaScript to encapsulate my Business Logic and Data Access layers. That's because these layers may get pretty complex going forward and I would prefer C# over JavaScript for these layers anyday.
What I wanted to know was is it possible to use the best of both worlds (PhoneGap for UI and Xamarin for Business Logic and Data Access layers)? If yes then:
1) Should I be embedding Xamarin code (in the form of a class library / module) into PhoneGap or PhoneGap framework into Xamarin?
2) Would using both together have a considerable drain on performance? I really don't care about the app download size.
Thanks in advance.