-
Notifications
You must be signed in to change notification settings - Fork 907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.73] react-native.config.js
is displayed in the upgrade helper
#2202
Comments
Personally, I feel like when I run the init command, I should be able to see all of the same files created in the react-native template repo. And since this is already there, I would probably just check it in. |
The default value of this option is true, right? Why create the file at all then? Why not include instructions for setting it to false if you don't want the behavior, no file needed? |
@rickhanlonii indeed it shouldn't be displayed in the upgrade helper. Initially our idea was to support automatic pods installation without any additional setup, however we decided to hide this feature behind this flag and enable it by default only for freshly started projects. For all the projects upgrading to newest version this should be optional, as there might be various reasons where this workflow would not fit:
For those reasons, we wanted to run I already checked Upgrade Helper but couldn't find anything that prevents from showing specific files. Maybe it can be done in |
One more solution that comes to my mind is creating this file only if |
I second @rickhanlonii thoughts as we should strive to don't manipulate the template in the
Can we do the following changes instead:
|
@tido64 what are your thoughts about it? I remember we discussed that when it was initially introduced |
The current implementation is flawed and will break all existing setups internally at Microsoft. There is no way you can ship this as opt-out in its current shape. For transparency, here's the list of issues I posted:
|
@tido64 do you have suggestions on how to make it better? |
Besides fixing all the issues? How about not making Edit: As for immediate actions: Make it opt in. Make sure its flaws are documented. |
Description
I was upgrading my app from 72 to 73 and reviewing the Upgrade Helper changes, and I saw a new file
react-native.config.js
:I looked in the react-native repo, but this file isn't in the template. So I looked in the CLI and found the change that includes this comment:
So the intention was to not check-in the file to the template, so the helper didn't include it. But for some reason, the helper does include it.
The text was updated successfully, but these errors were encountered: