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 :: add property to object javascript 
Javascript :: regex forms 
Javascript :: hide show object in react 
Javascript :: mdn getcurrentposition 
Javascript :: how to check for null in javascript 
Javascript :: spread and rest operator javascript 
Javascript :: how to craete an array in js 
Javascript :: how to write a range of numbers in if condition js 
Javascript :: how to decode jwt token client side 
Javascript :: accessing json data 
Javascript :: react split 
Javascript :: why my favicon icon is not removing in react 
Javascript :: Send Data Using Express With Post 
Javascript :: node-fetch graphql 
Javascript :: materal ui react range slider 
Javascript :: change height of div with scroll in javascript 
Javascript :: jquery dialog modal on modal 
Javascript :: list of string angular 
Javascript :: react native border radius not working ios 
Javascript :: react native layout 
Javascript :: javascript destructing 
Javascript :: vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in nextTick: "RangeError: Maximum call stack size exceeded" 
Javascript :: react-select-search useSelect hook 
Javascript :: get width of html photo 
Javascript :: React-native-background-fetch 
Javascript :: declaring two variables inside for loop 
Javascript :: scirpt tag react 
Javascript :: javascript pad string left 
Javascript :: vuetify use selected value 
Javascript :: what is closure 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =