Does Titanium Mobile Javascript convert to native Java or Objective-C code?

I have read so many articles (which are listed below), but I cannot get a consistent answer. Can I just choose one of two answers? If you work in Appcelerator or any competitor, please indicate this. Thanks!

FYI, I work with Titanium Studio 1.7.2.

A) Yes, it compiles into native code, but part of the code must be left in Javascript and interpreted at runtime.

B) No, that’s not how the Titan works.

Here are the articles I read:

1) Comparison between Corona, Phonegap, Titanium

2) http://developer.appcelerator.com/blog/2010/12/titanium-guides-project-js-environment.html

3) What happens to the JavaScript code after the application is compiled using Titanium Mobile

4) How does the Appcelerator Titanium mobile platform work?

+8
java objective-c compilation native titanium
source share
2 answers

Kevin Winnery's answer is correct at the link that you provided "What happens to the JavaScript code ..." .

To summarize this: your JavaScript runs at runtime (JavaScriptCore on iOS and Rhino, but soon V8 on Android). Your JavaScript can communicate across the bridge using native code and components. Like buttons, table views, web views, labels, etc. Actual JavaScript compiles into the application and runs at runtime on the device. But this is a very simplified answer. To learn more, read Kevin's answer at the link above.

How you get the power of JavaScript with the power of native components on both platforms.

I work in Appcelerator.

+4
source share

From what it seems (what they publish on their website and at least on the promo), they have a Javascript API that compiles to Native bit on iPhone or Android (Objective-C and Java, respectively, depending on the OS )

+1
source share

All Articles