I am new to cross-platform mobile development tools such as PhoneGap and Xamarin, so please excuse me if this question seems silly.
My app was designed for Android, iOS, Windows Phone, and Windows 8. I would like to maximize the amount of code that I can reuse across platforms. Therefore, I would prefer to use HTML5, CSS, and JavaScript for the user interface layer (PhoneGap). However, I would prefer to use C # instead of JavaScript to encapsulate my business logic and data access levels. This is because these layers can be quite complex in the future, and I would prefer C # over JavaScript for these layers at any time.
What I wanted to know is the ability to use the best of both worlds (PhoneGap for UI and Xamarin for business logic and data access levels)? If yes, then:
1) Should I embed Xamarin code (as a library / class module) in the PhoneGap or PhoneGap structure in Xamarin?
2) Would you use both of them together a significant performance leak? I really don't care about the download size of the application.
Thanks in advance.
source
share