1.0.6 • Published 2 years ago
neti-create-rn v1.0.6
neti-create-rn
New RN project creator
Usage:
1) Install globally this package if not installed npm i -g neti-create-rn
2) Go the projects folder on your computer
3) Open terminal
4) Run npx neti-create-rn yourProjectName
Strongly recommended to completely rename RN project by calling the command with --rnname argument.
npx neti-create-rn yourProjectName --rnname="MyProject"
If you need to rename the bundle name, call the command with --bundle argument.
npx neti-create-rn yourProjectName --rnname="MyProject" --bundle="my.new.app"
!!!IMPORTANT
To rename the app using --rnname argument, you must have react-native-rename package globally installed.
It should be noted that due to the new architecture, more files/variables need to be renamed. A short list of things to pay attention to:
android/app/build.gradleandroid/app/src/main/jni/Android.mkandroid/app/src/main/jni/MainComponentsRegistry.handroid/app/src/main/jni/MainApplicationTurboModuleManagerDelegate.handroid/app/src/main/java/com/renamesample/newarchitecture/modules/MainApplicationTurboModuleManagerDelegate.javaios/RenameSample/AppDelegate.mm
Search by netirntemplate, to check whether everything was renamed. Pay attention, that renamesample is a new app name
instead of netirntemplate.