Replies: 6 comments 3 replies
-
The proposal is good for me. Consider that this change will update the Xcodeproj, and we don't have much control over the users projects. We have to be very clear and very loud about this change as our users can be now used to a workflow on iOS that launches Metro for them. In general, I'm always very happy to remove code in user space. Let's make sure that we communicate the change well! 😉 |
Beta Was this translation helpful? Give feedback.
-
Yes, please! This was one of the first things we removed from our internal example apps, and stayed that way when we created |
Beta Was this translation helpful? Give feedback.
-
",The IDE's job starts and ends with this — doing the step above is an out-of-scope dependency." You found a great way to summarize my thoughts on it 😁, thank you! |
Beta Was this translation helpful? Give feedback.
-
+1 for as this will re-align Android & iOS tooling support |
Beta Was this translation helpful? Give feedback.
-
Thanks all! Shipped in facebook/react-native@dc68457. |
Beta Was this translation helpful? Give feedback.
-
Why not to add automatic Metro launch for Android IDE for consistency? You changed the thing that existed for years and nobody complained about. |
Beta Was this translation helpful? Give feedback.
-
What
Today, we have an inconsistency between Android and iOS in terms of whether the IDE (not CLI) auto-launches a terminal with Metro when an app is built (
launchPackager.command
).I am proposing removing this Xcode hook, to align between platforms and reduce the surface area of app startup scenarios we support.
The behaviour would remain when running
react-native android
orreact-native ios
(React Native CLI) (potentially a separate future discussion). (Note: The CLI ships with its ownlaunchPackager.command
😅)Pointers:
rn-tester/RNTesterPods.xcodeproj
react-native/template/ios/HelloWorld.xcodeproj
Assumptions
This Xcode build phase differs from the flow in Android Studio, and in my view, conceptually mixes concerns with what building a native app from the IDE should do.
I believe these are distinct steps which developers understand:
react-native start
): A process that serves JavaScript code at development time.For now, the assumption would remain that the CLI entry points (
react native
,react native ios
) offer a managed workflow where we do coordinate these.Distinct benefits
nvm
) Node version.cc @cipolleschi @cortinico @motiz88 @Saadnajmi @kelset
Beta Was this translation helpful? Give feedback.
All reactions