react-native-git-upgrade should use name from app.json instead of package.json #20991
Closed
3 tasks done
Labels
Resolution: Locked
This issue was locked by the bot.
Environment
Description
Right now,
react-native-git-upgrade
gets the app name frompackage.json
instead ofapp.json
. This can be problematic, as NPM allows package names which don't work as iOS/Android package names, or which break the directory structure assumed by react native (for example, the package name@my-namespace/my-app
).If an
app.json
file exists (such as when the folder structure is generated byreact-native-cli
), itsname
field should be used instead.The text was updated successfully, but these errors were encountered: