Replies: 3 comments
-
hey @zubko, actually in 0.73 we did some improvements to this flow. When run |
Beta Was this translation helpful? Give feedback.
-
I see, so you've decided to address it how Expo does. I saw it once briefly, but my workflow usually starts from This approach is good when one tries many new apps, like to run an example app from some library repo. But for regularly switching between 2-3 stable apps imo probably it's not so good. Did I understand correctly that another port (like 8082) will be compiled to the app's binary? So let's say after OS restart if I run the last app first, the packager will listen on port 8081 and I will have to rebuild the binary or it will fail to find the packager on 8082? On a larger app we have our own build script to apply some asset transformations and do other preparations before calling In my personal workflow, for example, I just start the Simulator/Emulator and I run the app which is already there from the last time. I avoid native rebuilds unless they are really needed. I understand of course that for the apps which I develop I can just put that 8081 port check / kill before calling As for increasing the port number aren't you concerned that running on port 8082, 8083 etc can create a bit of chaos to track which port which binary is using, and esp junior or non core RN developers would run into the situations that the packager was not found and they will spend time debugging it and / or will ask for support? |
Beta Was this translation helpful? Give feedback.
-
Hi @szymonrybczak , I have another suggestion for you. What if this question will have a 3rd option to choose from? Smth like: |
Beta Was this translation helpful? Give feedback.
-
Hi RN CLI devs,
When I switch between RN projects, it's tedious that I have to manually kill the other packager or I won't be able to run the new one.
I think the DX will be better if the packager would ask and then try to kill the other process.
Wdyt?
For example, it can run some shell commands to get the PID of that process and then another one to kill it. And it can be limited to macOS and Linux at first, if it's harder to do on Windows.
I could contribute a PR for it.
Beta Was this translation helpful? Give feedback.
All reactions