React Native APP name is set, the application icon

Change the name

The application name is the name of the default when you create a project using the react-native-cli. Modify very simple way, and to find the appropriate configuration modifications. For example, I initiated the project name called test, and now want to modify the test program.

Android

Edit android / app / src / main / res / values ​​/ strings.xml file:
<resources>
原始   <string name="app_name">test</string>
Modify <string name = "app_name"> test procedure </ string>   
</resources>

iOS

Edit ios / himself from the project file name /Info.plist:
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<string>rnproject</string>
 
Change
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleDisplayName</key>
<String> test procedure </ string>

Modify the application icon

Select one of your favorite photos, then go to the icon factory generated online, click on the icon to download all
 
After downloading the file directory there are two, one is the android and ios
 
  Replace the default icon can be used directly to generate good content.
1. Android
Alternatively android / app / src / main / res corresponding to the icon.
2. iOS
Replace ios / content myself a name /Images.xcassets/AppIcon.appiconset in the project.
 
 

Guess you like

Origin www.cnblogs.com/guanpingping/p/11360376.html