search

Home  >  Q&A  >  body text

javascript - Weex generates apk, do you still need to write android code?

Looking at the documentation on the weex official website, you need to write android code to generate an android application. Why do you do this? I think ionic is also cross-platform, but there is no need to write android code. Could you please tell me the reason for this?

漂亮男人漂亮男人2778 days ago759

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-19 10:31:10

    weex is cross-platform, but each platform has different dependencies. First of all, what we need to solve when using weex is the performance problem of H5, so adding a browser shell to an H5 website has no effect at all. Weex or RN both render the corresponding components natively when developing APPs, so that performance issues can be solved. Therefore, generating android apk requires certain Android development experience.

    reply
    0
  • PHPz

    PHPz2017-05-19 10:31:10

    At this stage, there are three common methods of hybrid App.

    The control interface is given natively, JS is called, and the native control is generated. The final page displays the native control instead of the web page. This definitely requires a certain knowledge of Android and iOS. RN and weex are such solutions

    Native provides an interface for realizing interaction between web pages and Native. The web pages are packaged into the installation package, and web views are used to display the web pages. The final page displays the web pages. The representative is ionic

    The third type is similar to the second one, except that the web page is not packaged into the installation package, but obtained from the remote end.

    reply
    0
  • Cancelreply