Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

react native change app name

Android
1. Modify displayName in app.json file
2. Modify app_name in android/app/src/main/res/values/strings.xml
3. cd android -> ./gradlew clean
4. cd .. -> react-native run-android
IOS
1. Modify Display Name in Project target (General Tab) 
2. Or in info.plist file string value of CFBundleDisplayName key
Comment

change react native app name

android:
android/app/src/main/res/values/string.xml > change APP_NAME.

ios:
ios/[currentName].xcodeproj/project.pbxproj > change PRODUCT_NAME in debug and release. 
or
go to ios/[currentName]/info.plist
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
Comment

change app name in react native android

To change the name of the react-native Application

1 . Open ./android/app/src/main/java/[multiple folders]/MainActivity.java

 @Override
  protected String getMainComponentName() {
    return "NameOfTheApp";
  }
Open android/app/src/main/res/values/strings.xml

NEW APP NAME

Change Name in App.json and package.json.

4.For clean android project run following command

cd android &&./gradlew clean

Comment

how to set app name in react native ios

{
    "name": "SomethingSomething",
    "displayName": "My New App Name"
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: array spread operator in javascript 
Javascript :: javascript regex match character from a set of characters 
Javascript :: sort JavaScript array by two numeric fields 
Javascript :: what difference between react func and class components 
Javascript :: javascript array randomizer 
Javascript :: Prevent safari loading from cache when back button is clicked 
Javascript :: js catch all images errors 
Javascript :: url encoded body in node.js 
Javascript :: svg in react native 
Javascript :: buildpack for nodejs 
Javascript :: js import export 
Javascript :: how to add element in json object 
Javascript :: nebular loader 
Javascript :: ios/main.jsbundle no such file or directory react native 
Javascript :: jquery function done 
Javascript :: validation in react native 
Javascript :: vue nuxt vuex store watch 
Javascript :: how to import pdfmake/build/pdfmake.min in react 
Javascript :: chrome extension add css to page 
Javascript :: nodemon install locally json file 
Javascript :: lodash isempty 
Javascript :: Making promises 
Javascript :: render jsx in react 
Javascript :: attributes in same line prettier 
Javascript :: array some 
Javascript :: no routes matched location / react router 
Javascript :: button dropdown not working on datatable search 
Javascript :: js ignore case 
Javascript :: cloudinary react 
Javascript :: You provided a `value` prop to a form field without an `onChange` handler 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =