How to make React Native mobile application faster?

前端 未结 5 642
盖世英雄少女心
盖世英雄少女心 2021-02-02 15:45

React Native mobile application is working very slow on every click. I am using react native v0.40.0 and following are the dependencies of my proje

5条回答
  •  死守一世寂寞
    2021-02-02 16:13

    There can be various reasons which makes the react-native app slower. I would suggest the following key points that can help:

    1. Prefer dumb components over class components wherever possible.
    2. Try using redux, it is a powerful state management tool that can provide you the best code, if implemented properly.
    3. Use tools like react-monocole and appr. Guide to react-monocole.
    4. Generate the signed apk, the debugged react-native app has additional features in it. Here's a guide to generate signed apk.

提交回复
热议问题