In react-native, To create a new application we use the following command:
react-native init MyApp
This command will create a package name with com.myapp. Sometimes, if your application is created with the wrong package name or bundle id or you want to release your existing application with a different package name then you can change your package name by following the below steps. So, if you want to change your package name then you need to do some changes in the following files:
android_build_config( package="MY.APP.NEW_ID" ) android_resource( package="MY.APP.NEW_ID" )
In end clean gradle (in /android folder):
Clean your project after changes.