react-native-rename icon indicating copy to clipboard operation
react-native-rename copied to clipboard

Rename with <Space> EX: APP<SPACE>NAME

Open rendy14s opened this issue 6 years ago • 5 comments

Hello, I'm get the issue, if i run react-native-rename "Nelayan Aruna" and re-build, thats not work. the apps display with name "NelayanAruna"

how can i put the beetwen my apps ? thanks

rendy14s avatar Mar 13 '18 10:03 rendy14s

Same problem here, how to add whitespace between words?

FRizzonelli avatar Mar 22 '18 10:03 FRizzonelli

+1

rendy14s avatar Mar 22 '18 11:03 rendy14s

@rendy14s @FRizzonelli

It may result from https://github.com/junedomingo/react-native-rename/blob/master/src/index.js#L78 if you want use whitespace between two words,you can change

const nS_NewName = newName.replace(/\s/g, '');

to

const nS_NewName = newName.trim();

chang-ke avatar Apr 15 '18 02:04 chang-ke

This is a little bit complicated since the removal of spaces is used in part to build the package name for Android. I plan to refactor this so that the package name is treated separately from the bundle identifier that's provided and allow users to specify both. This will be v3.

ajcrites avatar Nov 01 '18 14:11 ajcrites

Type it in console without space and edit \android\app\src\main\res\values\strings.xml

SimonHudec avatar Jan 20 '19 11:01 SimonHudec

Closing, check v3 now.

junedomingo avatar Dec 26 '22 09:12 junedomingo