junedomingo / react-native-rename

Rename react-native app with just one command
MIT License
2.63k stars 261 forks source link

Please provide path and content string using "-p [value]" or "--pathContentStr [value]" option to be used in renaming the folders, files and their contents. #206

Closed Sohnyneo closed 1 year ago

Sohnyneo commented 1 year ago

Can't rename. Says "Please provide path and content string using "-p [value]" or "--pathContentStr [value]" option to be used in renaming the folders, files and their contents."

To Reproduce Steps to reproduce the behavior:

  1. npx react-native-rename@latest "APPNAME" -b com.XXXX.XXX
  2. or: npx react-native-rename "APPNAME" --androidBundleID com.XXXX.XXX --iosBundleID com.XXXX.XXX
Sohnyneo commented 1 year ago

It usually worked with npx react-native-rename "app name"

But today, it is not even working with the above simple command.

$ npx react-native-rename "igs"
Please provide path and content string using "-p [value]" or "--pathContentStr [value]" option to be used in renaming the folders, files and their contents.
example: react-native-rename "igs" -p "[value]"
junedomingo commented 1 year ago

Hi @Sohnyneo , it means "igs" is too short for folders and files name. try npx react-native-rename "igs" -p "IgsApp" or the non abbreviated word of "igs" something like that

macrozone commented 1 year ago

@junedomingo why is there a minimum length?

The default react-native creates folders named "app". Its now impossible to use this tool just to change the packagename. Can this limit be removed? I don't see why it is there in the first place. Is there a reason for that?