React native for android run very slow when not enable “Debug JS”

后端 未结 5 1521
南旧
南旧 2021-02-05 03:33

I am developing an app using react native, I use some code base for ios and android, the ios version run smoothly.

But the android version run very slowly. the weird thi

5条回答
  •  情书的邮戳
    2021-02-05 04:00

    React Native app does run slower on Android. But the performance is not real during your development. You can build a release version to check the real performance, release version is much faster than dev version.

    There are also some bad codes which can make your app slow. Like console.log(), it does slow the app during development. Avoid unnecessary re-render the view, don't use arrow function and .bind in render, etc.

提交回复
热议问题