I used react-native init MyApp
to initialise a new React Native app.
This created among others an Android project with the package com.myapp
.
Go to file android/app/src/main/AndroidManifest.xml -
Update :
attr android:label of Element application as :
Old value - android:label="@string/app_name"
New Value - android:label="(string you want to put)"
and
attr android:label of Element activity as :
Old value - android:label="@string/app_name"
New Value - android:label="(string you want to put)"
Worked for me, hopefully it will help.
You can use react-native-rename package which will take of all the necessary changes of package name under
but make sure to manually change the package name of all files under the java/com folder. because when i created an splash screen activity the old package name is not updated.
https://www.npmjs.com/package/react-native-rename