Created
February 16, 2018 07:28
-
-
Save mayank-shekhar/73446ac5f3b2cdb32869e4d466208dcc to your computer and use it in GitHub Desktop.
Rename App ID and Package name for a React Native App.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | |
I am facing issue with changing the Bundle Identifier for IOS. I changed in Xcode (to com.securegate) but when I am running the IOS simulator from Command line (react-native run-ios) then at the end it still points to older Bundle identifier (org.reactjs.native.example.securegate):
Installing build/Build/Products/Debug-iphonesimulator/securegate.app
Launching org.reactjs.native.example.securegate
org.reactjs.native.example.securegate: 49881Please can anyone help. Thanks.
Try using this : https://github.com/kyle-ssg/react-native-app-id
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
Same here ... any help plz