How can I add a space in my application name? Such as, if I do
react-native init HelloWorld
it would create an application with name HelloWorld. But if I do this
$ react-native init "Hello World"
"Hello World" is not a valid name for a project.
Please use a valid identifier name (alphanumeric).
Is there any way to add space in the project name? I found a solution for iOS (https://github.com/facebook/react-native/issues/6115), but I'm developing for android. Please let me know how can I solve this problem.
Your projects in react-native can't have spaces in them, but you can change the app name directly in the android & ios projects. For android: go to android/app/src/main/res/values/string. xml and change app_name to your desired value.
Just change the "displayName" then delete ios folder and run "react-native eject". Show activity on this post. replace My App with your app name.
An easy to understand and nestable layout system, React Spaces allow you to divide a page or container into anchored, scrollable and resizable spaces enabling you to build desktop type user interfaces in the browser.
Your projects in react-native can't have spaces in them, but you can change the app name directly in the android & ios projects.
For android:
go to android/app/src/main/res/values/string.xml and change app_name to your desired value.
For ios:
Go to ios/[currentName].xcodeproj/project.pbxproj and change the PRODUCT_NAME values, both in debug and release, from the current name to your new name.
or go to ios/[currentName]/info.plist, find this:
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
and replace the ${PRODUCT_NAME} with your desired name
Add this key in info.plist
<key>CFBundleDisplayName</key>
<string>Top Articles</string>
Remember  
not worked in build setting of the project. 
this will work as space
Output:
Top Articles
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With