Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
618 views
in Technique[技术] by (71.8m points)

javascript - 为什么React Native Android应用程序在调试模式下运行速度非常慢?(Why React Native Android app is running very slow on debug mode?)

I am working on react native application, It's running very slow on debug mode.(我正在研究React本机应用程序,它在调试模式下运行非常慢。)

It takes huge time to load and hangs multiple times.(加载需要大量时间,并且会多次挂起。) I am running my app on the following devices::(我在以下设备上运行我的应用程序:) Redmi Note 4(红米手机注4) & Oppo F1s(和Oppo F1) And using RN Version: 0.61.4(并使用RN版本:0.61.4) Please suggest me how can I run app fast on debug mode?(请建议我如何在调试模式下快速运行应用程序?) and what other devices I can use for this?(我还可以使用其他哪些设备?)   ask by Archana Sharma translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

When you are using remote debugging the app is expected to run slower.(使用远程调试时,该应用程序运行速度可能会较慢。)

1) remove unwanted consoles(1)删除不需要的控制台) 2) off debug remotely and only use terminal to show output(2)远程关闭调试,仅使用终端显示输出) 3) animation are always slow on debeg mode(3)在debeg模式下动画总是很慢) 4) check if there are warnings in console when you run the project.(4)运行项目时检查控制台中是否有警告。) resolve these warnings.(解决这些警告。) if still your app is slow on debug mode then install new application and compare its speed with you app.(如果您的应用仍在调试模式下运行缓慢,则请安装新的应用并将其速度与您的应用进行比较。) if it is showing too much difference then your app have some issue in its code(如果显示出太多差异,则您的应用程序的代码有问题)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...