I'm trying to figure out how to change a ReactNative app name. The installed APK on my device is simply "App", with the Android icon. How can I change this?
I've tried changing package.json and re-running react-native upgrade but it didn't update AndroidManifest.xml
simply change
<string name="app_name"> 'NEW_APP_NAME' </string>
located inNOTE: recommended
by Paul Nyondo maybe affect MainApplication.java file, DON'T USE IT!
Simply way
PROJECT >android > app > main > res > style
Then change the app name
If you are asking only for Android here is solution
Modify
displayName
in/app.json
fileModify
app_name
inandroid/app/src/main/res/values/strings.xml
then Run these commands one by one
You can try this
Try react-native-rename this npm package will ease the process
The generator does not override the
strings.xml
file located inandroid/app/src/main/res/values/
, so you have to change theapp_name
variable manually