I have a react native application and I changed the package name of the application using https://www.npmjs.com/package/react-native-rename. After that I tried to run the projec
You need to check 2 files to make sure you have equal names there:
AppRegistry.registerComponent('YourAppName', () => App);
In both places names should be equal (case sensitive).
Have you changed the values in the index.ios.js, index.android.js and app.json files?
There are some instructions here.
you landed up on this answer because still you are not able to solve the issue
open the file mentioned in above in title
this used for
look for method
@Override
protected String getMainComponentName() {
return "AddYourNewNameHere";
}
which might be returning a hard coded string replace it to desired name!!
ensure you clean your gradle demon as the project does not compile sometimes for that use following
- cd android
- gradlew clean