Does React Native compile JavaScript into Java for Android?

前端 未结 6 1332
再見小時候
再見小時候 2020-12-05 01:43

When I develop hybrid apps with React Native. Does the JavaScript code I write transform into Java-Code or Java-Bytecode for the Dalvik/ART Runtime when I create an Android-

6条回答
  •  长情又很酷
    2020-12-05 01:57

    React Native works as a wrapper. For example: if you wanted to put a button in your layout, you'd simply add a button tag. You then use a specific API from the UI module to render this on Android. You can easily create custom native modules to use in your React Native projects. However, code written natively is often faster.

提交回复
热议问题