Skip to content
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

Add Rename script #23

Open
haikov opened this issue Apr 8, 2019 · 3 comments
Open

Add Rename script #23

haikov opened this issue Apr 8, 2019 · 3 comments
Labels
good first issue Good for newcomers

Comments

@haikov
Copy link
Contributor

haikov commented Apr 8, 2019

It's a pretty common task - to rename an application you are building from the starter kit. So let's make it easy.

Pepperoni app kit has a script for renaming and it worked fine for their kit. It may be a great point to start: https://github.com/futurice/pepperoni-app-kit/blob/master/support/rename.sh

I think we need to write some bash script that will let us to run something like yarn rename, ask a few questions (new display name, new bundle id, etc.) and would change code in all required places.

@haikov haikov added the good first issue Good for newcomers label Apr 8, 2019
@sogangCSmaster
Copy link

sogangCSmaster commented Apr 17, 2019

Please add renaming script..

I think this process..?

  1. Update app.json file to your app name.
  2. delete ios android folders
  3. run react-native eject
  4. run react-native link

I maybe wrong..

manisuec added a commit to manisuec/react-native-starter that referenced this issue Oct 23, 2019
@pimvanderheijden
Copy link

pimvanderheijden commented Mar 3, 2020

All right, I ran rename.sh

After that I think I have to copy some files like project.pbxproj and some .xcscheme files to get the project back in a working state again in Xcode. Yet, I suspect there are still some steps missing. After doing a clean cd ios; pod install I ran into a problem of a missing target:

[!] Unable to find a target named `Mijnsportteam-tvOS` in project `Mijnsportteam.xcodeproj`, did find `Mijnsportteam`.

Is rename.sh meant to run only directly after cloning the starter kit?

@joshuadutton
Copy link

I do this with the following command:

npx react-native-rename MY_PROJECT_NAME

If you want, you could just add that as a package.json script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants