React Native 100% memory

Asked

Viewed 436 times

2

I’m using the emulator Android Studio to view a app developed in React Nativand as soon as I turn the remote 'start' of React Native in the prompt, the application starts consuming memory infinitely until crash the PC, I started using the React Native yesterday and I couldn’t solve that problem.

inserir a descrição da imagem aqui

  • 1

    I gave up using React Native on Windows, linux is much faster.

  • Without context, any answer is purely achism. I use Android Studio daily for development with React Native and Flutter, without problems. Do you have any additional information you might include in the question?

  • As I started yesterday to learn React Native, my perception of problems is still very low, but basically when starting the application the memory consumption that it consumes does not stop rising, although the application works normally.

  • @Gabrielzendine was going through the same problems! The most plausible solution is Voce migrate to Linux, I’m using Ubuntu now and no longer have problems with 100% memory and disk management. My windows would crash 20 or 30 times a day! I switched to Linux and that’s no longer a problem.(I have a Dual boot with Linux and Windows on my humble Corei5 and 8G RAM notebook and predestining to put a hard drive ssd in the future.) Of course if the person has a SUPER COMPUTER no matter what your OS, but I think this is not our case....

1 answer

2


At first you could use the app expo to test your code directly on your android device, and encode on Windows without using Android Studio.

For those who are starting the expo is a good solution, however for more advanced features it has some limitations.

With it you create your app in your favorite editor and when you save them they are already updated on your device.

You can also create an account at expo and learn about React by editing apps right in your browser and running on your smartphone :).

All this without memory bursting and disk 100%.

After you learn React-Turn on and go for more advanced features. Switch operating system like I did (for Linux [Ubuntu]) and I don’t regret it.Then you can use the emulators of android studio without so many memory bottlenecks and excessive disk uses.

See here how install the expo.

That one video youtube has a brief tutorial.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.