Skip to content

Instantly share code, notes, and snippets.

@mayank-shekhar
Created February 16, 2018 07:28
Show Gist options
  • Save mayank-shekhar/73446ac5f3b2cdb32869e4d466208dcc to your computer and use it in GitHub Desktop.
Save mayank-shekhar/73446ac5f3b2cdb32869e4d466208dcc to your computer and use it in GitHub Desktop.
Rename App ID and Package name for a React Native App.
For Android:
Manually change it in android/app/src/main/java/com/PROJECT_NAME/MainActivity.java:
package MY.APP.ID;
In android/app/src/main/java/com/PROJECT_NAME/MainApplication.java:
package MY.APP.ID;
In android/app/src/main/AndroidManifest.xml:
package="MY.APP.ID"
In android/app/build.gradle:
applicationId "MY.APP.ID"
Gradle' cleaning in the end (in /android folder):
./gradlew clean
For iOS:
Change the Bundle Id in Xcode.
@flyskywhy
Copy link

@BobsonTheFirst
Copy link

https://github.com/junedomingo/react-native-rename works well

Nice, worked very well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment