I have a MacBook Air, and while it can perfectly compile and run ReactNative projects on Android device, I noticed that the MBA will become so hot in no time if the Metro server is run. If it's hot, even the IDE (Visual Studio Code) is lagging like 2-5s when I'm trying to type anything.
Is it possible for me to compile, run ReactNative project, and also debug it from Mac's browser, without running Metro server on my Mac? (like, for example, actually bundle the server into the app like when we release production APK -- but still enabling me to get console output on browser?)
EDIT: currently I have already added bundleInDebug: true
, save, and then retry npx react-native run-android
, but it still does the "Starting JS server..." thing. Closing the server terminal window makes the app crash, so I guess the app still depends on the Metro server on the computer. It's almost like the bundleInDebug
option gets ignored.