Reputation: 407
According to the React Native documentation when an app runs in IOS it uses the JavaSriptCore engine to run JavaScript code, but does not use JIT.
But there's nothing about it on Android. I would like to know if in Android JavaScript code is interpreted or JIT compiled.
Upvotes: 1
Views: 2553
Reputation: 1417
Technically both. JIT compilation means it does interpretation when executed and optional optimization when it's required (Caching in memory to reuse without re-translation). But iOS doesn't allow this kind of dynamic compilation, that's why the documentation saids.
Upvotes: 1